24 lines
No EOL
909 B
TypeScript
24 lines
No EOL
909 B
TypeScript
class A { }
|
|
class B extends A { }
|
|
|
|
class LanguageSpec_section_4_5_inference {
|
|
|
|
public set InferredGetterFromSetterAnnotation(a: A) { }
|
|
public get InferredGetterFromSetterAnnotation() { return new B(); }
|
|
|
|
public get InferredGetterFromSetterAnnotation_GetterFirst() { return new B(); }
|
|
public set InferredGetterFromSetterAnnotation_GetterFirst(a: A) { }
|
|
|
|
|
|
public get InferredFromGetter() { return new B(); }
|
|
public set InferredFromGetter(a) { }
|
|
|
|
public set InferredFromGetter_SetterFirst(a) { }
|
|
public get InferredFromGetter_SetterFirst() { return new B(); }
|
|
|
|
public set InferredSetterFromGetterAnnotation(a) { }
|
|
public get InferredSetterFromGetterAnnotation() : A { return new B(); }
|
|
|
|
public get InferredSetterFromGetterAnnotation_GetterFirst() : A { return new B(); }
|
|
public set InferredSetterFromGetterAnnotation_GetterFirst(a) { }
|
|
} |