mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 21:21:33 +00:00
graalvm is bad and should go away
This commit is contained in:
@ -114,7 +114,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
|
||||
}
|
||||
PrefixOperator.UnaryPlus, PrefixOperator.UnaryMinus, PrefixOperator.BinaryNot -> {
|
||||
if (value !is Number) {
|
||||
throw RuntimeException("Numeric unary '${node.op.token}' illegal on non-numeric type '${value.javaClass.simpleName}'")
|
||||
throw RuntimeException("Numeric unary '${node.op.token}' illegal on non-numeric type")
|
||||
}
|
||||
unaryNumericOperation(node, value)
|
||||
}
|
||||
@ -164,7 +164,7 @@ class EvaluationVisitor(root: Scope, val stack: CallStack) : FunctionLevelVisito
|
||||
binaryNot = { it.inv() }
|
||||
)
|
||||
}
|
||||
else -> throw RuntimeException("Unknown numeric type: ${value.javaClass.name}")
|
||||
else -> throw RuntimeException("Unknown numeric type")
|
||||
}
|
||||
|
||||
override fun visitSuffixOperation(node: SuffixOperation): Any {
|
||||
|
Reference in New Issue
Block a user