mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
49 lines
810 B
TypeScript
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: {}
|
|
}
|
|
}
|
|
}
|
|
};
|