Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix instantiation expr. args. in TypeScript.
  • Loading branch information
Bastiaan Marinus van de Weerd
Bastiaan Marinus van de Weerd committed Apr 3, 2025
commit 43f24116babe3ddc34cc64c03258829a188cda40
Original file line number Diff line number Diff line change
Expand Up @@ -2678,6 +2678,7 @@ if none @is_async {
(ternary_expression)
(this)
(true)
(instantiation_expression)
; #dialect typescript
(type_assertion)
; #end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function foo<T extends new () => unknown>(x: T) {}
class Bar<_T> {}
foo(Bar<string>);
// ^TODO defined: 2