17 lines
410 B
Java
17 lines
410 B
Java
package io.gitlab.jfronny.muscript.compiler.expr;
|
|
|
|
import io.gitlab.jfronny.muscript.compiler.*;
|
|
import io.gitlab.jfronny.muscript.compiler.expr.dynamic.*;
|
|
|
|
public abstract non-sealed class NumberExpr extends Expr<Double> {
|
|
@Override
|
|
public Type getResultType() {
|
|
return Type.Number;
|
|
}
|
|
|
|
@Override
|
|
public DynamicExpr asDynamicExpr() {
|
|
return new DynamicCoerce(this);
|
|
}
|
|
}
|