Skip to content

Commit

Permalink
Add comments to test for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleect committed Nov 25, 2023
1 parent 8d61280 commit aff9eaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions res/examples/field/invalid_field_name_init.locks
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Class fields can not be named "init"
// This name is reserved for class constructors

class Foo {
let init; // out: NameError: "init" is a reserved name
}

0 comments on commit aff9eaa

Please sign in to comment.