Ticket #264 (closed defect: fixed)
False compilation error for complex expression
Reported by: | Charles | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
An expression that indexes a list of types, instantiates the type and then invokes a method, fails with a false compilation error:
class A def blah print "A!" class B def blah print "B!" class C def blah print "C!" class Program def main myList = [A, B, C] for i, type in myList.numbered # This works: type = myList[i] type().blah # This fails at compile time: myList[i]().blah
Reported by Dr_Asik in the forums at
http://cobra-language.com/forums/viewtopic.php?f=4&t=699#p3632
Attachments
Change History
Note: See
TracTickets for help on using
tickets.