Skip to content

Commit 481c18c

Browse files
committed
Added test
1 parent 89ac194 commit 481c18c

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//// [declFileClassExtendsNull.ts]
2+
3+
class ExtendsNull extends null {
4+
}
5+
6+
//// [declFileClassExtendsNull.js]
7+
var __extends = (this && this.__extends) || function (d, b) {
8+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
9+
function __() { this.constructor = d; }
10+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11+
};
12+
var ExtendsNull = (function (_super) {
13+
__extends(ExtendsNull, _super);
14+
function ExtendsNull() {
15+
_super.apply(this, arguments);
16+
}
17+
return ExtendsNull;
18+
})(null);
19+
20+
21+
//// [declFileClassExtendsNull.d.ts]
22+
declare class ExtendsNull extends null {
23+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
=== tests/cases/compiler/declFileClassExtendsNull.ts ===
2+
3+
class ExtendsNull extends null {
4+
>ExtendsNull : Symbol(ExtendsNull, Decl(declFileClassExtendsNull.ts, 0, 0))
5+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=== tests/cases/compiler/declFileClassExtendsNull.ts ===
2+
3+
class ExtendsNull extends null {
4+
>ExtendsNull : ExtendsNull
5+
>null : null
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @target: ES5
2+
// @declaration: true
3+
4+
class ExtendsNull extends null {
5+
}

0 commit comments

Comments
 (0)