Idris-dev/test/reg060/reg060.idr
Edwin Brady be1569e66d Fix type class name propagation issue
We weren't shadowing names correctly when a class was parameterised on a
single variable and one of the methods bound the same name. This almost
never happens, but leads to very odd error messages when it does.

Fixes #2026
2015-03-20 19:55:51 +00:00

13 lines
227 B
Idris

class MyFunctor (f : Type -> Type) where
mymap : (m : a -> b) -> f a -> f b
data Foo x y = Bar y
instance MyFunctor (Foo m) where
mymap m x = ?wibble
instance [foo] Functor m => MyFunctor m where
mymap m x = map m x