Skip to content

Commit b3decb6

Browse files
committed
Accept baselines
1 parent a44893d commit b3decb6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
=== tests/cases/compiler/wellKnownSymbolExpando.ts ===
2+
function f() {}
3+
>f : Symbol(f, Decl(wellKnownSymbolExpando.ts, 0, 0), Decl(wellKnownSymbolExpando.ts, 0, 15))
4+
5+
f[Symbol.iterator] = function() {}
6+
>f : Symbol(f, Decl(wellKnownSymbolExpando.ts, 0, 0), Decl(wellKnownSymbolExpando.ts, 0, 15))
7+
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
8+
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --))
9+
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
10+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== tests/cases/compiler/wellKnownSymbolExpando.ts ===
2+
function f() {}
3+
>f : typeof f
4+
5+
f[Symbol.iterator] = function() {}
6+
>f[Symbol.iterator] = function() {} : () => void
7+
>f[Symbol.iterator] : error
8+
>f : typeof f
9+
>Symbol.iterator : symbol
10+
>Symbol : SymbolConstructor
11+
>iterator : symbol
12+
>function() {} : () => void
13+

0 commit comments

Comments
 (0)