Ticket #286 (new defect)
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
Note: See
TracTickets for help on using
tickets.