JS: Add test

This commit is contained in:
Asger F
2019-07-09 21:36:41 +01:00
parent 78adcd4a85
commit badca07606

View File

@@ -0,0 +1,27 @@
import 'dummy';
class Foo {
a() {
/** calls:Foo.b */
this.b();
}
/** name:Foo.b */
b() {}
}
class Bar {
a() {
/** calls:Bar.b */
this.b();
}
/** name:Bar.b */
b() {}
}
function callA(x) {
x.a();
}
callA(new Foo);
callB(new Bar);