16 lines
230 B
Plaintext
16 lines
230 B
Plaintext
|
=== tests/cases/compiler/anyIsAssignableToObject.ts ===
|
||
|
interface P {
|
||
|
>P : P
|
||
|
|
||
|
p: {};
|
||
|
>p : {}
|
||
|
}
|
||
|
|
||
|
interface Q extends P { // Check assignability here. Any is assignable to {}
|
||
|
>Q : Q
|
||
|
>P : P
|
||
|
|
||
|
p: any;
|
||
|
>p : any
|
||
|
}
|