3 Feb
2010
3 Feb
'10
6:38 p.m.
The following appears to be a bug in the compiler Foo.ck: public class Foo { Baz baz; fun Bar bar() { return baz; } } class Bar { } class Baz extends Bar { } [Foo.ck]:line(7): function 'bar@0@Foo' was defined with return type 'Bar' -- but returning type 'Baz' [Foo.ck]: ...in function 'bar' Changing the definition order solves the problem class Bar { } class Baz extends Bar { } public class Foo { Baz baz; fun Bar bar() { return baz; } } michael