mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
988 B
Plaintext
16 lines
988 B
Plaintext
classOverloadForFunction2.ts(1,10): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
classOverloadForFunction2.ts(1,10): error TS2814: Function with bodies can only merge with classes that are ambient.
|
|
classOverloadForFunction2.ts(2,7): error TS2813: Class declaration cannot implement overload list for 'bar'.
|
|
|
|
|
|
==== classOverloadForFunction2.ts (3 errors) ====
|
|
function bar(): string;
|
|
~~~
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
~~~
|
|
!!! error TS2814: Function with bodies can only merge with classes that are ambient.
|
|
!!! related TS6506 classOverloadForFunction2.ts:2:7: Consider adding a 'declare' modifier to this class.
|
|
class bar {}
|
|
~~~
|
|
!!! error TS2813: Class declaration cannot implement overload list for 'bar'.
|
|
!!! related TS6506 classOverloadForFunction2.ts:2:7: Consider adding a 'declare' modifier to this class. |