Arend icon indicating copy to clipboard operation
Arend copied to clipboard

Problem with mixing constructors defined via pattern-matching with external parameters

Open sxhya opened this issue 1 year ago • 0 comments

\func f {X : \Type} => X \where {
  \data D1 (n : Nat) \with
    | 0 => nilD X -- 'X' is not a reference to either a definition or a variable
}



\func f2 {X : \Type} => X \where {
  \data D2 (n : Nat)
    | nilD2 X -- No error
}

sxhya avatar Jan 03 '24 17:01 sxhya