15 lines
462 B
Text
15 lines
462 B
Text
=== tests/cases/compiler/anyIsAssignableToVoid.ts ===
|
|
interface P {
|
|
>P : Symbol(P, Decl(anyIsAssignableToVoid.ts, 0, 0))
|
|
|
|
p: void;
|
|
>p : Symbol(p, Decl(anyIsAssignableToVoid.ts, 0, 13))
|
|
}
|
|
|
|
interface Q extends P { // check assignability here. any is assignable to void.
|
|
>Q : Symbol(Q, Decl(anyIsAssignableToVoid.ts, 2, 1))
|
|
>P : Symbol(P, Decl(anyIsAssignableToVoid.ts, 0, 0))
|
|
|
|
p: any;
|
|
>p : Symbol(p, Decl(anyIsAssignableToVoid.ts, 4, 23))
|
|
}
|