Open apblack opened 4 years ago
This isn’t a syntax error. It’s a declaration of a method dialectError
annotated confidential(_)
passing in aString
as the parameter of the annotation.
Whether anything handles that correctly, I doubt - Kernan ignores all annotations I think - but that’s what it is
Excellent — that explains why I did not get a syntax error message. We should get a message that confidential(_)
is not declared as an annotation, but that check may not be in minigrace yet.
Look at this (erroneous) source code:
I added the annotation
is confidential
in the wrong place. This did not raise a syntax error, but only a name resolution error whenaString
was considered to be undefined. It seems as though the parameter list(aString)
was completely ignored.