#1083 Fandoc comment before using clause causes compiler error

qualidafial Sat 24 Apr 2010

Edit examples/fwt/clock.fan:

Add any fandoc (i.e. **) comment after the shebang line but before the using clause:

** free willzyx

Trying to run the script produces this output:

Compiler error: "C:\fantom-1.0.52\examples\fwt\clock.fan(4,1): Expected 'class', not 'using'
ERROR: cannot compile script

tcolar Sat 24 Apr 2010

In theory (grammar) fandocs are to directly precede the type or slot they are documenting.

qualidafial Sat 24 Apr 2010

This was a file-level comment though, and didn't cause a problem when this code was first written (circa build 1.0.47)

Login or Signup to reply.