ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

cannot use method ref of a constructor in other constructor #581

Closed sgalles closed 9 years ago

sgalles commented 9 years ago

This code

class Foo{
    shared new Bar(){} 
    shared new () {
        (Foo.Bar)();
    }
}

shared void run(){
    Foo();
}

executed

foo$_Bar();
^
ReferenceError: foo$_Bar is not defined