lean4-htt/tests/lean/inaccessible.lean.expected.out
Leonardo de Moura 87932f1c56 feat(frontends/lean): change notation for inaccessible patterns
The following are accepted
 .(t)
 ._

We don't accept .t anymore because it will conflict with the field
access notation.
2017-03-28 16:09:15 -07:00

21 lines
980 B
Text

inaccessible.lean:14:10: error: function expected at
mk
inaccessible.lean:14:2: error: invalid occurrence of macro expression in pattern (possible solution, mark term as inaccessible using '.( )')
sorry
inaccessible.lean:14:17: error: ill-formed match/equations expression
inaccessible.lean:17:12: error: invalid inaccessible annotation, it cannot be used around functions in applications
inaccessible.lean:25:12: error: invalid pattern, 'a' already appeared in this pattern
inaccessible.lean:28:3: error: function expected at
f
inaccessible.lean:28:2: error: type mismatch at application
inv_7 sorry (mk b)
term
mk b
has type
imf .?m_3 (.?m_3 b)
but is expected to have type
imf f sorry
inaccessible.lean:28:16: error: ill-formed match/equations expression
inaccessible.lean:31:4: error: invalid pattern, 'a' already appeared in this pattern
inaccessible.lean:82:2: error: invalid use of inaccessible term, it is not completely fixed by other arguments
.?m_1 + 1