15 lines
245 B
JavaScript
15 lines
245 B
JavaScript
|
//// [inheritSameNamePropertiesWithDifferentOptionality.ts]
|
||
|
interface C {
|
||
|
x?: number;
|
||
|
}
|
||
|
|
||
|
interface C2 {
|
||
|
x: number;
|
||
|
}
|
||
|
|
||
|
interface A extends C, C2 { // error
|
||
|
y: string;
|
||
|
}
|
||
|
|
||
|
//// [inheritSameNamePropertiesWithDifferentOptionality.js]
|