There were two separate issues: * An explicit Pi as the type of a field with a default value would be considered a field reference * An implicit Pi would be instantiated by the elaborator during `visit_structure_instance`
5 lines
93 B
Text
5 lines
93 B
Text
structure foo :=
|
||
(bar : Π n : ℕ, ℕ := id)
|
||
(baz : Π {n : ℕ}, ℕ := id)
|
||
|
||
check {foo.}
|