Ticket #286 (new defect)

Opened 7 years ago

Last modified 7 years ago

Invoke delegate property compiler error

Reported by: jaegs Owned by:
Priority: medium Milestone: Cobra 0.9
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:


class X
	var _comparer as Comparison<of int>

	pro comparer from var

	cue init
		_comparer = do(a as int, b as int) = a.compareTo(b)

	def main
		trace _comparer(5, 4) #works
		#trace .comparer(5, 4) doesn't compile
			#error: Cannot call "comparer" because it is a "property".
			#Should be equivalent to 'trace .comparer.invoke(5, 4)'

#Cobra svn:2758 (post 0.8) / 2012-07-24 on Mono 2.10.9 CLR v4.0.30319 on Mac OS X 10.6.8

Change History

Changed 7 years ago by jaegs

  • summary changed from Invoke public property compiler error to Invoke delegate property compiler error
Note: See TracTickets for help on using tickets.