зеркало из https://github.com/github/codeql.git
JS: Add hanging test case
This commit is contained in:
Родитель
bfe5db20a3
Коммит
ff67118097
|
@ -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>;
|
Загрузка…
Ссылка в новой задаче