Closed alexnask closed 8 years ago
Haven't pinpointed what causes this yet.
Here is the current smallest testcase I could find:
Printable: interface { toString: func -> String } Foo: class implements Printable { }
This code compiles:
Printable: interface { toString: func -> String } Foo: class implements Printable { toString: func -> String { "hi" } }
This code segfaults rock:
Printable: interface { toString: func -> String print: func { toString() println() } } Foo: class implements Printable { toString: func -> String { "hi" } }
It seems that implementing toString stops the segfault, unless print is also defined in Printable, which brings back the segfault.
Haven't pinpointed what causes this yet.
Here is the current smallest testcase I could find:
This code compiles:
This code segfaults rock:
It seems that implementing toString stops the segfault, unless print is also defined in Printable, which brings back the segfault.