Files
tsgo/testdata/baselines/reference/submodule/conformance/assignFromBooleanInterface2.symbols

54 lines
1.9 KiB
Plaintext

//// [tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts] ////
=== assignFromBooleanInterface2.ts ===
interface Boolean {
>Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(assignFromBooleanInterface2.ts, 0, 0))
doStuff(): string;
>doStuff : Symbol(Boolean.doStuff, Decl(assignFromBooleanInterface2.ts, 0, 19))
}
interface NotBoolean {
>NotBoolean : Symbol(NotBoolean, Decl(assignFromBooleanInterface2.ts, 2, 1))
doStuff(): string;
>doStuff : Symbol(NotBoolean.doStuff, Decl(assignFromBooleanInterface2.ts, 4, 22))
}
var x = true;
>x : Symbol(x, Decl(assignFromBooleanInterface2.ts, 8, 3))
declare var a: Boolean;
>a : Symbol(a, Decl(assignFromBooleanInterface2.ts, 9, 11))
>Boolean : Symbol(Boolean, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(assignFromBooleanInterface2.ts, 0, 0))
declare var b: NotBoolean;
>b : Symbol(b, Decl(assignFromBooleanInterface2.ts, 10, 11))
>NotBoolean : Symbol(NotBoolean, Decl(assignFromBooleanInterface2.ts, 2, 1))
a = x;
>a : Symbol(a, Decl(assignFromBooleanInterface2.ts, 9, 11))
>x : Symbol(x, Decl(assignFromBooleanInterface2.ts, 8, 3))
a = b;
>a : Symbol(a, Decl(assignFromBooleanInterface2.ts, 9, 11))
>b : Symbol(b, Decl(assignFromBooleanInterface2.ts, 10, 11))
b = a;
>b : Symbol(b, Decl(assignFromBooleanInterface2.ts, 10, 11))
>a : Symbol(a, Decl(assignFromBooleanInterface2.ts, 9, 11))
b = x;
>b : Symbol(b, Decl(assignFromBooleanInterface2.ts, 10, 11))
>x : Symbol(x, Decl(assignFromBooleanInterface2.ts, 8, 3))
x = a; // expected error
>x : Symbol(x, Decl(assignFromBooleanInterface2.ts, 8, 3))
>a : Symbol(a, Decl(assignFromBooleanInterface2.ts, 9, 11))
x = b; // expected error
>x : Symbol(x, Decl(assignFromBooleanInterface2.ts, 8, 3))
>b : Symbol(b, Decl(assignFromBooleanInterface2.ts, 10, 11))