Skip to content

Better error message for missing Inhabited instance on a Partial Del #1

Open

Description

@bollu
structure Loc where
  line : Int
  column : Int

partial def foo (i: Loc) (j: String) : Loc × String := foo i j

Can be fixed by declaring

instance : Inhabited Loc where
   default := { line := 1, column := 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions