mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-11 03:34:13 +03:00
147149b432
Also fix resolution rules so that determining parameters, in *all cases* except Num instances (for defaulting to Integer), must not be metavariables. Syntax is: class Foo a b c | a, b the optional | a, b lists the determining parameters. When resolving Foo, a and b must not be metavariables. c can be a metavariable (and hence solved by type class resolution). The overlapping instance check now only looks at determining parameters, so, for example, for Foo the following instances would be considered overlapping: instance Foo Int Nat Bool instance Foo Int Nat String |
||
---|---|---|
.. | ||
basic012.idr | ||
expected | ||
run |