Fix expected/detected flipped

This commit is contained in:
Victor Maia 2022-08-17 21:22:58 -03:00
parent e8cc429948
commit b109ee674f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "kind2"
version = "0.2.61"
version = "0.2.62"
edition = "2021"
description = "A pure functional functional language that uses the HVM."
repository = "https://github.com/Kindelia/Kind2"

View File

@ -1085,7 +1085,7 @@ Line = (String.cons 10 String.nil)
ask term_typ = (Checker.bind (Infer term))
((Bool.if rhs
@term_typ @type
(Checker.new_equation orig term_typ type)
(Checker.new_equation orig type term_typ)
@term_typ @type
ask is_equal = (Checker.bind (Equal (Eval term_typ) (Eval type)))
(Bool.if is_equal