Wiki

Ticket #78 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years 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 Download (2.3 KB) - added by hopscc 16 years ago.

Change History

Changed 16 years ago by hopscc

Changed 16 years 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 16 years 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.