- 
                Notifications
    You must be signed in to change notification settings 
- Fork 61
Open
Labels
BugThe observed behaviour is incorrect or unexpected.The observed behaviour is incorrect or unexpected.
Description
Describe the bug
Flipping comparison produces different exceptions:
// foobar.sw
def foo = {1} end
def bar = 1 endlet foo = "" in let bar = "" in run "example/foobar.sw"; pure (foo > bar)
// <: Comparison is undefined for  {1} and 1
let foo = "" in let bar = "" in run "example/foobar.sw"; pure (bar < foo)
// Fatal error: Incompatible comparison of 1 and {1}Expected behavior
Both should report that {1} cannot be compared.
Additional context
This issue is just for fun, I already have a fix.
Metadata
Metadata
Assignees
Labels
BugThe observed behaviour is incorrect or unexpected.The observed behaviour is incorrect or unexpected.