Ticket #22 (closed defect: invalid)
Some operators fail unexpectedly
| Reported by: | wolf <rowan@…> | Owned by: | mooneer |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | interpreter | Version: | 1.0a3 |
| Keywords: | Cc: |
Description
Testcase:
class Test [ operator add(value) [ "success"|print; ] ]; Test + 2;
Output:
System.exceptions.SyntaxError: syntax error, unexpected $end called from test-005.kt line 2
(The newlines *are* part of the output)
Expected:
success
Change History
Note: See
TracTickets for help on using
tickets.

The test case given above is incorrect. What it should be is this:
(plus instead of add)
With that change, I do indeed get success when running it.