-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
An unused implicit argument of an interface method produces an unresolved hole #3474
Comments
The problem is in the method code after elaboration. This is similar to #3467 data Iface : Type where
MkIface : ({x : Type} -> Type) -> Iface
failing "Unsolved holes"
method : Iface => {x : Type} -> Type
method @{MkIface f} = f |
It is strange that the compiler returns code $ idris2 --check Main.idr; echo $?
1/1: Building Main (Main.idr)
Error: Unsolved holes:
Main.{x:831} introduced at:
0 But with the manually desugared version (from the previous post) code |
This code also produces an unsolved hole: interface Fail where
f : Type -> {_ : Type} -> Type |
1 task
Another bug that isn't fixed in #3475: interface Iface where
method : (x : Double) -> Type
failing "Mismatch between: Double and Int"
implementation {x : Int} -> Iface where
method _ = Type |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Steps to Reproduce
Expected Behavior
Successful compilation
Observed Behavior
The text was updated successfully, but these errors were encountered: