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