12 lines
150 B
TypeScript
12 lines
150 B
TypeScript
|
// @strictNullChecks: true
|
||
|
|
||
|
class C {
|
||
|
p: number;
|
||
|
}
|
||
|
|
||
|
class D extends C {
|
||
|
constructor(public p?: number) {
|
||
|
super();
|
||
|
}
|
||
|
}
|