Ticket #78 (closed defect: fixed)

Opened 7 weeks ago

Last modified 4 weeks ago

Using `raise` on a delegate should generate an error message

Reported by: Chuck Owned by: Chuck
Priority: major Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

raise is for events only. In the error message, guide the user to the correct syntax for delegates.

Check ignore as well.

Currently, the compile throws an internal exception. Code:

class Test

	sig SimpleMethod

	def foo(s as SimpleMethod)
		raise s

	def main is shared
		pass

Attachments

ticket78.patch (2.3 kB) - added by hopscc 4 weeks ago.

Change History

Changed 4 weeks ago by hopscc

Changed 4 weeks ago by hopscc

  • owner set to Chuck
  • status changed from new to assigned

Change assertion to check and emit error messages. Add additional hint if purported event is a methodSig/delegate. Additional error message testfile.

Changed 4 weeks ago by Chuck

  • status changed from assigned to closed
  • resolution set to fixed

Applied in changeset:1827

Thanks.

Note: See TracTickets for help on using tickets.