8 lines
325 B
Text
8 lines
325 B
Text
|
==== tests/cases/compiler/overloadOnConstNoNonSpecializedSignature.ts (1 errors) ====
|
||
|
class C {
|
||
|
x1(a: 'hi'); // error, no non-specialized signature in overload list
|
||
|
~~~~~~~~~~~~
|
||
|
!!! Specialized overload signature is not assignable to any non-specialized signature.
|
||
|
x1(a: string) { }
|
||
|
}
|
||
|
|