Ticket #185 (closed defect: fixed)
Cannot refer to generic type in extended initialization
Reported by: | Chuck | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
The following program generates a false compilation error on the second to last line:
class A pro b from var as Object? class P def main a = A() assert a.b is nil a = A(b=5) assert a.b == 5 a = A(b=String) assert a.b is String a = A(b=List<of String>) assert a.b is List<of String>
Reported by gauthier in the discussion forums.
Change History
Note: See
TracTickets for help on using
tickets.