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