Skip to content

Commit

Permalink
Fix reference to nonexistent entity type (#1549)
Browse files Browse the repository at this point in the history
Toward #1547.

I decided to simply fix the error in this PR.  At #1547 there is discussion of various other means to prevent this kind of error in the future (both for developers and players), but I will leave implementing some of those ideas to a future PR.
  • Loading branch information
byorgey authored Sep 27, 2023
1 parent 93bbbe3 commit ae50cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Swarm/Language/Typecheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ inferConst c = case c of
Selfdestruct -> [tyQ| cmd unit |]
Move -> [tyQ| cmd unit |]
Backup -> [tyQ| cmd unit |]
Path -> [tyQ| (unit + int) -> ((int * int) + entity) -> cmd (unit + dir) |]
Path -> [tyQ| (unit + int) -> ((int * int) + text) -> cmd (unit + dir) |]
Push -> [tyQ| cmd unit |]
Stride -> [tyQ| int -> cmd unit |]
Turn -> [tyQ| dir -> cmd unit |]
Expand Down

0 comments on commit ae50cf5

Please sign in to comment.