Skip to content

Commit

Permalink
"var" needs to be declared here, since a constructor "var" also exists
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Sep 20, 2024
1 parent 8b71789 commit 9bc4f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lang/flybytes/Syntax.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ Method staticMethod(Type ret, str name, list[Formal] args, list[Stat] block)
@synopsis{Short-hand for generating a constructor.}
@pitfalls{Don't forgot to generate a super call.}
Method constructor(Modifier access, list[Formal] formals, list[Stat] block)
= method(constructorDesc([ var.\type | var <- formals]), formals, block, modifiers={access});
= method(constructorDesc([ var.\type | Formal var <- formals]), formals, block, modifiers={access});
@synopsis{"new" short-hand with parameters}
Exp new(Type class, list[Type] argTypes, list[Exp] args)
Expand Down

0 comments on commit 9bc4f10

Please sign in to comment.