Skip to content

Unnamed instance arguments not considered for instance resolution #5467

@omelkonian

Description

@omelkonian

In contrast to "don't care" instance arguments of the form {{ _ : P }}, unnamed instance arguments of the form {{ P }} are not considered as candidates in this case:

open import Agda.Builtin.Nat
open import Agda.Builtin.Equality

record Def (A : Set) : Set where
  field def : A
open Def ⦃...⦄

_ = ⦃ _ : Def Nat ⦄  def ≡ 0 -- this works
_ = ⦃ Def Nat ⦄  def ≡ 0 -- this fails

Is this intended? If so, the docs should be updated under 'Find candidates'.

AGDA: 2.6.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    instanceInstance resolutionux: documentationIssues relating to Agda's documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions