Ticket #304 (closed defect: fixed)
confusing error when making a mistake in require syntax
Reported by: | kobi7 | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
A better error would explain that the statement after 'require' should be on a new line
the code:
class B def dedentError(x as int) as char require x < 3 test assert true body return 'z'
the output:
F:\>cobra -c -t:lib test.cobra test.cobra(7,16): error: Expecting use, assembly, namespace, class, interface or enum, but got "DEDENT". Compilation failed - 1 error, 0 warnings
Attachments
Change History
Note: See
TracTickets for help on using
tickets.