We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f66370 commit 0de3f5aCopy full SHA for 0de3f5a
tests/cases/conformance/controlFlow/controlFlowGenericTypes.ts
@@ -175,3 +175,19 @@ class TableBaseEnum<
175
iSpec[null! as keyof PublicSpec];
176
}
177
178
+
179
+// Repros from #45145
180
181
+function f10<T extends { a: string } | undefined>(x: T, y: Partial<T>) {
182
+ y = x;
183
+}
184
185
+type SqlInsertSet<T> = T extends undefined ? object : { [P in keyof T]: unknown };
186
187
+class SqlTable<T> {
188
+ protected validateRow(_row: Partial<SqlInsertSet<T>>): void {
189
+ }
190
+ public insertRow(row: SqlInsertSet<T>) {
191
+ this.validateRow(row);
192
193
0 commit comments