Idris-dev/test/reg058/implicits.idr
Edwin Brady 26cfbe9e1e Scoped implicits fix
If after an application there are more implicit arguments expected, add
those arguments then re-elaborate the application - we often don't know
what these arguments will be until after elaborating the application
because the application itself may compute a type.

Fixes #1899
2015-02-14 13:58:06 +00:00

15 lines
217 B
Idris

%default total
InterpBool : () -> Type
InterpBool () = {x : Type} -> x -> Nat
class IdrisBug (u : ()) where
idrisBug : InterpBool u
instance IdrisBug () where
idrisBug _ = Z
f : Nat
f = idrisBug {u = ()} 'a'