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