Added test case.

This commit is contained in:
Daniel Rosenwasser 2017-07-27 11:22:12 -07:00
parent 89994111bd
commit c14ff00bcf

View file

@ -0,0 +1,37 @@
namespace Test1 {
export interface Foo {
bar: string;
}
var x: Foo.bar = "";
}
namespace Test2 {
export class Foo {
bar: string;
}
var x: Foo.bar = "";
}
namespace Test3 {
export type Foo = {
bar: string;
}
var x: Foo.bar = "";
}
namespace Test4 {
export type Foo = { bar: number }
| { bar: string }
var x: Foo.bar = "";
}
namespace Test5 {
export type Foo = { bar: number }
| { wat: string }
var x: Foo.bar = "";
}