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 {
11667
11667
if (s & TypeFlags.Undefined && (!strictNullChecks || t & (TypeFlags.Undefined | TypeFlags.Void))) return true;
11668
11668
if (s & TypeFlags.Null && (!strictNullChecks || t & TypeFlags.Null)) return true;
11669
11669
if (s & TypeFlags.Object && t & TypeFlags.NonPrimitive) return true;
11670
- if (s & TypeFlags.UniqueESSymbol || t & TypeFlags.UniqueESSymbol) return false;
11671
11670
if (relation === assignableRelation || relation === comparableRelation) {
11672
11671
if (s & TypeFlags.Any) return true;
11673
11672
// 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;
28
28
const constInitToConstCallWithTypeQuery : typeof constCall = constCall ;
29
29
const constInitToConstDeclAmbientWithTypeQuery : typeof constType = constType ;
30
30
31
+ // assignment from any
32
+ // https://github.com/Microsoft/TypeScript/issues/29108
33
+ const fromAny : unique symbol = { } as any ;
34
+
31
35
// function return inference
32
36
function funcReturnConstCall ( ) { return constCall ; }
33
37
function funcReturnLetCall ( ) { return letCall ; }
@@ -286,6 +290,9 @@ var varInitToConstDeclAmbient = constType;
286
290
// declaration from initializer with type query
287
291
const constInitToConstCallWithTypeQuery = constCall ;
288
292
const constInitToConstDeclAmbientWithTypeQuery = constType ;
293
+ // assignment from any
294
+ // https://github.com/Microsoft/TypeScript/issues/29108
295
+ const fromAny = { } ;
289
296
// function return inference
290
297
function funcReturnConstCall ( ) { return constCall ; }
291
298
function funcReturnLetCall ( ) { return letCall ; }
You can’t perform that action at this time.
0 commit comments