39 lines
595 B
Plaintext
39 lines
595 B
Plaintext
=== tests/cases/compiler/a.ts ===
|
|
export class A {
|
|
>A : A
|
|
|
|
protected protected: any;
|
|
>protected : any
|
|
|
|
protected setProtected(val: any) {
|
|
>setProtected : (val: any) => void
|
|
>val : any
|
|
|
|
this.protected = val;
|
|
>this.protected = val : any
|
|
>this.protected : any
|
|
>this : this
|
|
>protected : any
|
|
>val : any
|
|
}
|
|
}
|
|
|
|
=== tests/cases/compiler/b.ts ===
|
|
import {A} from './a';
|
|
>A : typeof A
|
|
|
|
declare module "./a" {
|
|
interface A { }
|
|
>A : A
|
|
}
|
|
|
|
export class B extends A {
|
|
>B : B
|
|
>A : A
|
|
|
|
protected setProtected() {
|
|
>setProtected : () => void
|
|
|
|
}
|
|
}
|