lang, lang: types: Add automatic stringer generation
It's more useful if we know the string representation of Kind's.
This commit is contained in:
@@ -697,7 +697,7 @@ func TestUnification1(t *testing.T) {
|
||||
name: "typed if expr",
|
||||
ast: stmt,
|
||||
fail: true,
|
||||
experrstr: "can't unify, invariant illogicality with equality: base kind does not match (2 != 3)",
|
||||
experrstr: "can't unify, invariant illogicality with equality: base kind does not match (Str != Int)",
|
||||
})
|
||||
}
|
||||
{
|
||||
@@ -750,7 +750,7 @@ func TestUnification1(t *testing.T) {
|
||||
name: "typed var expr",
|
||||
ast: stmt,
|
||||
fail: true,
|
||||
experrstr: "can't unify, invariant illogicality with equality: base kind does not match (2 != 1)",
|
||||
experrstr: "can't unify, invariant illogicality with equality: base kind does not match (Str != Bool)",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user