Skip to content

Commit

Permalink
Flip leftT <: rightT for PlainAssignOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
xmamo committed May 30, 2023
1 parent b90e37d commit 3711b73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Devin/Typers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ checkExpression expression = case expression of
leftT <- checkExpression left
rightT <- checkExpression right

if leftT <: rightT then
if rightT <: leftT then
pure rightT
else
report' (InvalidBinary binary leftT rightT)
Expand Down
2 changes: 1 addition & 1 deletion thesis/thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,7 @@
leftT <- checkExpression left
rightT <- checkExpression right

if leftT <: rightT then
if rightT <: leftT then
pure rightT
else
report' (InvalidBinary binary leftT rightT)
Expand Down

0 comments on commit 3711b73

Please sign in to comment.