Skip to content

Commit

Permalink
Remove test for private foreign function testing.
Browse files Browse the repository at this point in the history
Will be solved in #10137
  • Loading branch information
Akirathan committed May 30, 2024
1 parent 9b7d39a commit dc180ba
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,18 +505,6 @@ public void illegalPrivateTypeDeclaration() throws Exception {
ir, Syntax.UnexpectedExpression$.MODULE$, "Unexpected expression", 0, 14);
}

// Foreign functions cannot be specified as private.
@Test
public void illegalPrivateForeignFunction() throws Exception {
var ir =
parse("""
private foreign js js_func = \"\"\"
return 42;
""");
assertSingleSyntaxError(
ir, Syntax.UnexpectedExpression$.MODULE$, "Unexpected expression", 29, 73);
}

@Test
public void illegalEscapeSequence() throws Exception {
var ir = parse("""
Expand Down

0 comments on commit dc180ba

Please sign in to comment.