ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

Can't call the Callable type of a member class #499

Closed sgalles closed 9 years ago

sgalles commented 9 years ago

This code

shared void run(){  
    class Foo(){
        shared class Bar(){}
    }
    value t = Foo().Bar;
    print(t());
}

when executed :

                    if(bar$Foo$===undefined)bar$Foo$=new this.Bar$Foo.$$;
                                                                     ^
TypeError: Cannot read property '$$' of undefined