mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Added test case.
This commit is contained in:
1 parent
89994111bd
commit
c14ff00bcf
1 file changed
+37
@@ -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 = "";
|
||||
}
|
||||
Reference in new issue
Block a user