JS: Add hanging test case

This commit is contained in:
Asger F
2023-04-24 13:52:49 +02:00
parent bfe5db20a3
commit ff67118097
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import javascript
// The extractor would hang on this test case, it doesn't matter too much what the output of the test is.
query TypeAliasDeclaration typeAliases() { any() }
query Type typeAliasType(TypeAliasDeclaration decl) { result = decl.getTypeName().getType() }
query Type getAliasedType(TypeAliasReference ref) { result = ref.getAliasedType() }

View File

@@ -0,0 +1,3 @@
{
"include": ["."]
}

View File

@@ -0,0 +1,5 @@
export type Foo<R> = <A>() => Foo<R | A>;
export type Bar<R> = <A>() => Bar<[R, A]>;
export type Baz<R> = <A>() => Baz<(x: R) => A>;