Ticket #349 (closed defect: fixed)
Internal error for forward reference
Reported by: | Charles | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.6 |
Keywords: | Cc: |
Description
The following code causes an internal error:
class A var _foo = B.bar class B def bar as String is shared return ''
Note that the equivalent C# works fine:
class A { protected string _foo = B.Bar(); } class B { public static string Bar() { return ""; } }
Though C# has no "var" at the member var level, nor "from var" for declaring properties.
Change History
Note: See
TracTickets for help on using
tickets.