ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

Default parameter value lost in extended constructor #540

Closed sgalles closed 9 years ago

sgalles commented 9 years ago
class Foo {

    shared new Bar(Integer a = 1){
        print(a);
    }

    shared new () extends Bar(){}

}

shared void run(){
    Foo.Bar();
}

executed, prints out <null> instead of 1