mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
15 lines
192 B
TypeScript
15 lines
192 B
TypeScript
class C {
|
|
x = 1
|
|
y = 'hello';
|
|
}
|
|
|
|
var c = new C();
|
|
var c2 = new C(null); // error
|
|
|
|
class D<T extends Date> {
|
|
x = 2
|
|
y: T = null;
|
|
}
|
|
|
|
var d = new D();
|
|
var d2 = new D(null); // error
|