mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
767c22c997
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
37 lines
720 B
Plaintext
37 lines
720 B
Plaintext
checkForObjectTooStrict.ts(3,18): error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module CommonJS.
|
|
|
|
|
|
==== checkForObjectTooStrict.ts (1 errors) ====
|
|
namespace Foo {
|
|
|
|
export class Object {
|
|
~~~~~~
|
|
!!! error TS2725: Class name cannot be 'Object' when targeting ES5 and above with module CommonJS.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Bar extends Foo.Object { // should work
|
|
|
|
constructor () {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
class Baz extends Object {
|
|
|
|
constructor () { // ERROR, as expected
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|