Expression: Remove resolve(), only have it on Passthrough (abstract).
M src/main/java/nl/grauw/glass/expressions/ErrorLiteral.java +0 -5
@@ 14,11 14,6 @@ public class ErrorLiteral extends Litera
 	}
 
 	@Override
-	public Expression resolve() {
-		throw exception;
-	}
-
-	@Override
 	public boolean is(Type type) {
 		return true;
 	}

          
M src/main/java/nl/grauw/glass/expressions/Expression.java +0 -4
@@ 17,10 17,6 @@ public abstract class Expression {
 		return new ErrorLiteral(new EvaluationException("Not of type " + type)).get(type);
 	}
 
-	public Expression resolve() {
-		return this;
-	}
-
 	public int getInteger() {
 		if (is(Type.INTEGER))
 			return get(Type.INTEGER).getInteger();

          
M src/main/java/nl/grauw/glass/expressions/Passthrough.java +2 -0
@@ 2,6 2,8 @@ package nl.grauw.glass.expressions;
 
 public abstract class Passthrough extends Expression {
 
+	public abstract Expression resolve();
+
 	@Override
 	public boolean is(Type type) {
 		return resolve().is(type);