Wiki

Ticket #118 (new enhancement)

Opened 9 years ago

Last modified 4 years ago

Improve error message for generic type names that are missing "of"

Reported by: Chuck Owned by:
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: error message, generics Cc:

Description

class X

	def main is shared
		d = Dictionary<int, int>()  # error: Expecting an expression.
		t = List<int>()  # error: Expecting an expression.

The error message should instruct the user that if they are naming a generice, then they are missing "of".

Also, catch this problem in declarations such as inherits List<int> and def foo as List<int>

Change History

Changed 4 years ago by hopscc

related situation on ticket:337

Note: See TracTickets for help on using tickets.