File tree Expand file tree Collapse file tree 5 files changed +419
-397
lines changed
cases/conformance/types/uniqueSymbol Expand file tree Collapse file tree 5 files changed +419
-397
lines changed Original file line number Diff line number Diff line change @@ -11667,7 +11667,6 @@ namespace ts {
1166711667 if (s & TypeFlags.Undefined && (!strictNullChecks || t & (TypeFlags.Undefined | TypeFlags.Void))) return true;
1166811668 if (s & TypeFlags.Null && (!strictNullChecks || t & TypeFlags.Null)) return true;
1166911669 if (s & TypeFlags.Object && t & TypeFlags.NonPrimitive) return true;
11670- if (s & TypeFlags.UniqueESSymbol || t & TypeFlags.UniqueESSymbol) return false;
1167111670 if (relation === assignableRelation || relation === comparableRelation) {
1167211671 if (s & TypeFlags.Any) return true;
1167311672 // Type number or any numeric literal type is assignable to any numeric enum type or any
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ var varInitToConstDeclAmbient = constType;
2828const constInitToConstCallWithTypeQuery : typeof constCall = constCall ;
2929const constInitToConstDeclAmbientWithTypeQuery : typeof constType = constType ;
3030
31+ // assignment from any
32+ // https://github.com/Microsoft/TypeScript/issues/29108
33+ const fromAny : unique symbol = { } as any ;
34+
3135// function return inference
3236function funcReturnConstCall ( ) { return constCall ; }
3337function funcReturnLetCall ( ) { return letCall ; }
@@ -286,6 +290,9 @@ var varInitToConstDeclAmbient = constType;
286290// declaration from initializer with type query
287291const constInitToConstCallWithTypeQuery = constCall ;
288292const constInitToConstDeclAmbientWithTypeQuery = constType ;
293+ // assignment from any
294+ // https://github.com/Microsoft/TypeScript/issues/29108
295+ const fromAny = { } ;
289296// function return inference
290297function funcReturnConstCall ( ) { return constCall ; }
291298function funcReturnLetCall ( ) { return letCall ; }
You can’t perform that action at this time.
0 commit comments