Polymorphism support #848

Merged
ghallak merged 53 commits from ghallak/307 into master 2022-06-17 18:09:07 +09:00
Showing only changes of commit 3fc6d47223 - Show all commits

View File

@ -883,7 +883,10 @@ failing_contracts() ->
"when checking the application of\n" "when checking the application of\n"
" `g5 : ((Animal) => Animal) => Cat`\n" " `g5 : ((Animal) => Animal) => Cat`\n"
"to arguments\n" "to arguments\n"
" `x : (Cat) => Cat`">> " `x : (Cat) => Cat`">>,
<<?Pos(54, 44)
"Cannot unify `Animal` and `Cat`\n"
"when checking the type of the expression `f6() : option(Animal)` against the expected type `option(Cat)`">>
]) ])
, ?TYPE_ERROR(polymorphism_variance_switching_custom_types, , ?TYPE_ERROR(polymorphism_variance_switching_custom_types,
[<<?Pos(56,32) [<<?Pos(56,32)