(TypeEnv tenv, TypeInfo valueType)
| 37 | return type; |
| 38 | } |
| 39 | public TypeInfo typeCheckForAssign(TypeEnv tenv, TypeInfo valueType) |
| 40 | throws TypeException |
| 41 | { |
| 42 | type = tenv.get(nest, index); |
| 43 | if (type == null) { |
| 44 | type = valueType; |
| 45 | tenv.put(0, index, valueType); |
| 46 | return valueType; |
| 47 | } |
| 48 | else { |
| 49 | valueType.assertSubtypeOf(type, tenv, this); |
| 50 | return type; |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | @Reviser public static class NegativeEx extends NegativeExpr { |
| 55 | public NegativeEx(List<ASTree> c) { super(c); } |
no test coverage detected