mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
909 B
Plaintext
20 lines
909 B
Plaintext
//// [tests/cases/conformance/declarationEmit/typePredicates/declarationEmitIdentifierPredicatesWithPrivateName01.ts] ////
|
|
|
|
=== declarationEmitIdentifierPredicatesWithPrivateName01.ts ===
|
|
interface I {
|
|
>I : Symbol(I, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 0, 0))
|
|
|
|
a: number;
|
|
>a : Symbol(I.a, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 0, 13))
|
|
}
|
|
|
|
export function f(x: any): x is I {
|
|
>f : Symbol(f, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 2, 1))
|
|
>x : Symbol(x, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 4, 18))
|
|
>x : Symbol(x, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 4, 18))
|
|
>I : Symbol(I, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 0, 0))
|
|
|
|
return typeof x.a === "number";
|
|
>x : Symbol(x, Decl(declarationEmitIdentifierPredicatesWithPrivateName01.ts, 4, 18))
|
|
}
|