mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
735 B
Plaintext
14 lines
735 B
Plaintext
classOverloadForFunction.ts(1,7): error TS2813: Class declaration cannot implement overload list for 'foo'.
|
|
classOverloadForFunction.ts(2,10): error TS2814: Function with bodies can only merge with classes that are ambient.
|
|
|
|
|
|
==== classOverloadForFunction.ts (2 errors) ====
|
|
class foo { };
|
|
~~~
|
|
!!! error TS2813: Class declaration cannot implement overload list for 'foo'.
|
|
!!! related TS6506 classOverloadForFunction.ts:1:7: Consider adding a 'declare' modifier to this class.
|
|
function foo() {}
|
|
~~~
|
|
!!! error TS2814: Function with bodies can only merge with classes that are ambient.
|
|
!!! related TS6506 classOverloadForFunction.ts:1:7: Consider adding a 'declare' modifier to this class.
|
|
|