ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

Member alias using type arguments fails at runtime #519

Closed chochos closed 9 years ago

chochos commented 9 years ago
class C<A,B>(a,b) {
  shared A a;
  shared B b;
  alias E => A->B;
  shared void test() {
    Object e = key->item;
    if (is E e) {
      print(e)
    }
  }
}

Invoking test() fails because the alias E has a reference to type arguments of C but the js for the alias only refers to $$targs$$.