ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

class alias on constructor : runtime error #533

Closed sgalles closed 9 years ago

sgalles commented 9 years ago

This code

shared void run() {

    class Foo{
        shared new Baz(){   }
    }

    class Bar() => Foo.Baz();

    print(Bar());
}

Executed

Bar.$$=Baz.$$;
       ^
ReferenceError: Baz is not defined