1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
=== tests/cases/compiler/a.ts ===
export default abstract class A { a: number; }
>A : A
>a : number
class B extends A {}
>B : B
>A : A
new B().a.toExponential();
>new B().a.toExponential() : string
>new B().a.toExponential : (fractionDigits?: number) => string
>new B().a : number
>new B() : B
>B : typeof B
>a : number
>toExponential : (fractionDigits?: number) => string
=== tests/cases/compiler/b.ts ===
import A from './a';
>A : typeof A
class C extends A {}
>C : C
>A : A
new C().a.toExponential();
>new C().a.toExponential() : string
>new C().a.toExponential : (fractionDigits?: number) => string
>new C().a : number
>new C() : C
>C : typeof C
>a : number
>toExponential : (fractionDigits?: number) => string
|