mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
524 B
TypeScript
30 lines
524 B
TypeScript
//// [tests/cases/compiler/classExtendsNull.ts] ////
|
|
|
|
//// [classExtendsNull.ts]
|
|
class C extends null {
|
|
constructor() {
|
|
super();
|
|
return Object.create(null);
|
|
}
|
|
}
|
|
|
|
class D extends null {
|
|
constructor() {
|
|
return Object.create(null);
|
|
}
|
|
}
|
|
|
|
//// [classExtendsNull.js]
|
|
"use strict";
|
|
class C extends null {
|
|
constructor() {
|
|
super();
|
|
return Object.create(null);
|
|
}
|
|
}
|
|
class D extends null {
|
|
constructor() {
|
|
return Object.create(null);
|
|
}
|
|
}
|