mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
453 B
Plaintext
11 lines
453 B
Plaintext
doubleUnderStringLiteralAssignability.ts(2,5): error TS2322: Type '"no_dunder"' is not assignable to type '"__dunder"'.
|
|
|
|
|
|
==== doubleUnderStringLiteralAssignability.ts (1 errors) ====
|
|
var shouldBeOk: '__dunder' = '__dunder';
|
|
var bad: '__dunder' = 'no_dunder';
|
|
~~~
|
|
!!! error TS2322: Type '"no_dunder"' is not assignable to type '"__dunder"'.
|
|
var okok: '___thunder' = '___thunder';
|
|
var alsoOk: '_sunder' = '_sunder';
|
|
|