mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add regression test
This commit is contained in:
1 parent
709f5f2fc4
commit
0c3221c220
1 file changed
+10
-1
@@ -12,4 +12,13 @@ type Recurse1 = {
|
||||
|
||||
type Recurse2 = {
|
||||
[K in keyof Recurse1]: Recurse1[K]
|
||||
}
|
||||
}
|
||||
|
||||
// Repro from #27881
|
||||
|
||||
export type Circular<T> = {[P in keyof T]: Circular<T>};
|
||||
type tup = [number, number, number, number];
|
||||
|
||||
function foo(arg: Circular<tup>): tup {
|
||||
return arg;
|
||||
}
|
||||
Reference in new issue
Block a user