L
Laura Stern
Guest
Marian, you were doing very well. The error makes perfect sense to me. Since it isn't DO, the compiler is trying to parse this as a statement. There are only a finite set of things that can be here. It's not a keyword, or a function or an x:y expression, etc, so it tries to resolve it as a variable/field reference. Since an annotation is not in the syntax it can't possibly say "You can't put annotations in the middle of a statement" - I assume that's what you want it to say.
Continue reading...
Continue reading...