Skip to content

Commit 2032198

Browse files
committed
fixed bug on type checking of primed expressions
1 parent 3a31500 commit 2032198

File tree

1 file changed

+2
-2
lines changed
  • electrum/src/main/java/edu/mit/csail/sdg/alloy4compiler/ast

1 file changed

+2
-2
lines changed

Diff for: electrum/src/main/java/edu/mit/csail/sdg/alloy4compiler/ast/ExprUnary.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ public final String toHTML() {
253253
ErrorWarning w1=null, w2=null;
254254
Type s=p;
255255
switch(op) {
256-
case NOT: case AFTER: case ALWAYS: case EVENTUALLY: case PREVIOUS: case HISTORICALLY: case ONCE: // [HASLab]
256+
case NOT: case AFTER: case ALWAYS: case EVENTUALLY: case PREVIOUS: case HISTORICALLY: case ONCE:
257257
s=Type.FORMULA;
258258
break;
259-
case TRANSPOSE: case RCLOSURE: case CLOSURE: case PRIME: // [HASLab]
259+
case TRANSPOSE: case RCLOSURE: case CLOSURE:
260260
if (warns!=null && op!=Op.TRANSPOSE && type.join(type).hasNoTuple())
261261
w1=new ErrorWarning(pos, this+" is redundant since its domain and range are disjoint: "+sub.type.extract(2));
262262
s = (op!=Op.TRANSPOSE) ? resolveClosure(p, sub.type) : sub.type.transpose().intersect(p).transpose() ;

0 commit comments

Comments
 (0)