Skip to content

Commit ff67118

Browse files
committed
JS: Add hanging test case
1 parent bfe5db2 commit ff67118

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import javascript
2+
3+
// The extractor would hang on this test case, it doesn't matter too much what the output of the test is.
4+
query TypeAliasDeclaration typeAliases() { any() }
5+
6+
query Type typeAliasType(TypeAliasDeclaration decl) { result = decl.getTypeName().getType() }
7+
8+
query Type getAliasedType(TypeAliasReference ref) { result = ref.getAliasedType() }
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"include": ["."]
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export type Foo<R> = <A>() => Foo<R | A>;
2+
3+
export type Bar<R> = <A>() => Bar<[R, A]>;
4+
5+
export type Baz<R> = <A>() => Baz<(x: R) => A>;

0 commit comments

Comments
 (0)