Files
tsgo/testdata/baselines/reference/submodule/compiler/deeplyNestedAssignabilityIssue.js

49 lines
810 B
TypeScript

//// [tests/cases/compiler/deeplyNestedAssignabilityIssue.ts] ////
//// [deeplyNestedAssignabilityIssue.ts]
interface A {
a: number;
}
interface Large {
something: {
another: {
more: {
thing: A;
}
yetstill: {
another: A;
}
}
}
}
const x: Large = {
something: {
another: {
more: {
thing: {}
},
yetstill: {
another: {}
}
}
}
}
//// [deeplyNestedAssignabilityIssue.js]
"use strict";
const x = {
something: {
another: {
more: {
thing: {}
},
yetstill: {
another: {}
}
}
}
};