16 lines
235 B
Text
16 lines
235 B
Text
|
=== tests/cases/compiler/anyIsAssignableToVoid.ts ===
|
||
|
interface P {
|
||
|
>P : P
|
||
|
|
||
|
p: void;
|
||
|
>p : void
|
||
|
}
|
||
|
|
||
|
interface Q extends P { // check assignability here. any is assignable to void.
|
||
|
>Q : Q
|
||
|
>P : P
|
||
|
|
||
|
p: any;
|
||
|
>p : any
|
||
|
}
|