15 lines
230 B
Text
15 lines
230 B
Text
=== 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
|
|
}
|