mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
270 B
TypeScript
14 lines
270 B
TypeScript
//// [tests/cases/compiler/anyIsAssignableToObject.ts] ////
|
|
|
|
//// [anyIsAssignableToObject.ts]
|
|
interface P {
|
|
p: {};
|
|
}
|
|
|
|
interface Q extends P { // Check assignability here. Any is assignable to {}
|
|
p: any;
|
|
}
|
|
|
|
//// [anyIsAssignableToObject.js]
|
|
"use strict";
|