Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Nov 19, 2023
1 parent 52b9dac commit faeb9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter/runtimeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`))
Expand Down

0 comments on commit faeb9d4

Please sign in to comment.