mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Added test.
This commit is contained in:
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;
|
||||
});
|
||||
Reference in New Issue
Block a user