Skip to content

Conversation

@jonjanisch
Copy link

This is a trivial change to fix a test for super.

While reading the tests, I saw the super_in_top_level_function.lox mistakenly had the super at the top level instead of in a top level function.

  super.bar(); // Error at 'super': Can't use 'super' outside of a class.
fun foo() {
}

This change makes the test case for super_in_top_level_function.lox similar to this_in_top_level_function.lox:

fun foo() {
  super.bar(); // Error at 'super': Can't use 'super' outside of a class.
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant