generics not implemented
All checks were successful
Check / Explore-Gitea-Actions (push) Successful in 8s

This commit is contained in:
sfja 2026-04-16 13:36:38 +02:00
parent f3315e9c31
commit 6162c8e042

View File

@ -470,6 +470,10 @@ class TypeChecker {
const callableTy = calleeTy.callableTy();
if (callableTy.kind.generics !== null) {
((() => {
throw new Error("generics not implemented");
}) as () => void)();
let generics: Ty[];
if (k.generics) {
generics = k.generics.map((ty) => this.ty(ty));