Added test.
This commit is contained in:
parent
7c096576bc
commit
341f9cf1d6
18
tests/cases/compiler/forwardDeclaredCommonTypes01.ts
Normal file
18
tests/cases/compiler/forwardDeclaredCommonTypes01.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
// @lib: es5
|
||||
// @target: es5
|
||||
|
||||
interface Promise<T> {}
|
||||
interface Symbol {}
|
||||
interface Map<K, V> {}
|
||||
interface WeakMap<K extends object, V> {}
|
||||
interface Set<T> {}
|
||||
interface WeakSet<T extends object> {}
|
||||
|
||||
(function() {
|
||||
new Promise;
|
||||
new Symbol; Symbol();
|
||||
new Map;
|
||||
new WeakMap;
|
||||
new Set;
|
||||
new WeakSet;
|
||||
});
|
Loading…
Reference in a new issue