mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Add hanging test case
This commit is contained in:
@@ -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() }
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"include": ["."]
|
||||
}
|
||||
@@ -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>;
|
||||
Reference in New Issue
Block a user