12 lines
No EOL
292 B
TypeScript
12 lines
No EOL
292 B
TypeScript
class G<T>{ bar(x: T) { return x; } }
|
|
module M {
|
|
export class C { foo() { } }
|
|
export module C {
|
|
export class X {
|
|
}
|
|
}
|
|
|
|
var g1 = new G<C>();
|
|
g1.bar(null).foo();
|
|
}
|
|
var g2 = new G<M.C>() // was: error Type reference cannot refer to container 'M.C'.
|