Open joffrey-bion opened 3 years ago
Source TS:
export interface GrandParent { common: string; } export interface Parent1 { common: string; } export interface Parent2 extends GrandParent { irrelevant: string; } export interface Child extends Parent1, Parent2 { childProp: string; }
Generates:
interface GrandParent { var common: String } interface Parent1 { var common: String } interface Parent2 : GrandParent { var irrelevant: String } interface Child : Parent1, Parent2 { var childProp: String // missing override here for property "common" }
Which gives the compile error:
Class 'Child' must override public open var common: String? defined in Parent1 because it inherits multiple interface methods of it
var common: String? but in both cases it is non-nullable String Now I checked that generated code is compiled
var common: String?
String
Source TS:
Generates:
Which gives the compile error: