Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 43f2411

Browse files
author
Bastiaan Marinus van de Weerd
committed
Fix instantiation expr. args. in TypeScript.
1 parent d0b5947 commit 43f2411

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

languages/tree-sitter-stack-graphs-typescript/src/stack-graphs.tsg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,6 +2678,7 @@ if none @is_async {
26782678
(ternary_expression)
26792679
(this)
26802680
(true)
2681+
(instantiation_expression)
26812682
; #dialect typescript
26822683
(type_assertion)
26832684
; #end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function foo<T extends new () => unknown>(x: T) {}
2+
class Bar<_T> {}
3+
foo(Bar<string>);
4+
// ^TODO defined: 2

0 commit comments

Comments
 (0)