Wiki

Ticket #286 (new defect)

Opened 5 years ago

Last modified 5 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:

Description

class X
	var _comparer as Comparison<of int>

	pro comparer from var

	cue init
		base.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 5 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.