VoidType extends BuiltinType { @Override public Expr getCanonicalConstant(Scope scope) { assert !hasCanonicalConstant(scope); throw new RuntimeException("No canonical constant for " + this); } private  VoidType(); @Override String toString(); @Override boolean hasCanonicalConstant(Scope unused); @Override Expr getCanonicalConstant(Scope scope); @Override void accept(IAstVisitor visitor); static final VoidType VOID; }
@Test(expected = RuntimeException.class) public void getCanonicalConstant() { VoidType.VOID.getCanonicalConstant(new Scope()); }