Ticket #74 (closed defect: fixed)
Cannot pass dynamic values to initializers
Reported by: | Chuck | Owned by: | eric.sellon |
---|---|---|---|
Priority: | major | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
The following code gives false compilation errors on the commented line:
class X def init .init(0, 'aoeu') def init(i as int, s as String) pass def foo(i as int, s as String) pass def main is shared a = 1 to dynamic b = 'aoeu' to dynamic x = X(a, b) # test passing dynamic to an initializer x = X() x.foo(a, b)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.