public class ValErrors { public void nullType() { val a = null; } public void unresolvableExpression() { val c = d; } }