From faeb9d4236ed83d938c284bbccf3b34195203912 Mon Sep 17 00:00:00 2001 From: palumbon Date: Sun, 19 Nov 2023 01:49:35 +0100 Subject: [PATCH] Linter --- src/interpreter/runtimeModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/runtimeModel.ts b/src/interpreter/runtimeModel.ts index 640d7c7f..8d7245ba 100644 --- a/src/interpreter/runtimeModel.ts +++ b/src/interpreter/runtimeModel.ts @@ -489,7 +489,7 @@ export class Evaluation { const target = node.instantiated.target ?? raise(new Error(`Could not resolve reference to instantiated module ${node.instantiated.name}`)) const name = node.instantiated.name - + if (!target.is(Class)) raise(new Error(`${name} is not a class, you cannot generate instances of a ${target?.kind}`)) if (target.isAbstract) raise(new Error(`${name} is an abstract class, you cannot generate instances`))