Skip to content

Implicits in Interface Functions cause Typecheck Error #336

@fabianhjr

Description

@fabianhjr

Steps to Reproduce

module Test

interface Foo a where
  bar : a -> {auto ok: ()} -> a 

Expected Behavior

Typecheck (Like Idris1)

Observed Behavior

1/1: Building Test (Test.idr)
Test.idr:4:3--5:1:While processing left hand side of bar at Test.idr:4:3--5:1:
ok is not a valid implicit argument in bar

Edit: maybe related to #8, however I couldn't change it to a constraint as a workaround since I was restricting the domain of a division to nonzero elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions