Skip to content

Commit

Permalink
Fixed a bug when translating copy.
Browse files Browse the repository at this point in the history
New example:

ILL> :t \x:!A.copy x as z,y in z (x) y
!A -o (!A (x) !A)
  • Loading branch information
Harley Eades committed Apr 9, 2017
1 parent 539ef17 commit c83f5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ALL/Languages/ILL/AgdaInterface.agda
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ translate (Promote ts t) =
translate (Copy t₁ x y t₂) =
(translate t₁) >>=E
(λ tt₁ (translate t₂) >>=E
(λ tt₂ Right (close-t 0 x LCPV x (close-t 0 y RCPV y tt₂))))
(λ tt₂ right (Copy tt₁ (x , y) (close-t 0 x LCPV x (close-t 0 y RCPV y tt₂)))))
translate (Discard t₁ t₂) =
(translate t₁) >>=E
(λ tt₁ translate t₂ >>=E
Expand Down

0 comments on commit c83f5d8

Please sign in to comment.