lean4-htt/tests/lean/doIssue.lean.expected.out
Kyle Miller d39b0415f0
feat: enable pp.fieldNotation.generalized globally (#3744)
Sets the default value to `pp.fieldNotation.generalized` to `true`.
Updates tests, and fixes some minor flaws in the implementation of the
generalized field notation pretty printer.

Now generalized field notation won't be used for any function that has a
`motive` argument. This is intended to prevent recursors from pretty
printing using it as (1) recursors are more like control flow structures
than actual functions and (2) generalized field notation tends to cause
elaboration problems for recursors.

Note: be sure functions that have an `@[app_unexpander]` use
`@[pp_nodot]` if applicable. For example, `List.toArray` needs
`@[pp_nodot]` to ensure the unexpander prints it using `#[...]`
notation.
2024-03-23 02:38:09 +00:00

20 lines
425 B
Text

doIssue.lean:2:2-2:3: error: type mismatch
x
has type
Nat : Type
but is expected to have type
IO PUnit : Type
doIssue.lean:10:2-10:13: error: type mismatch
xs.set! 0 1
has type
Array Nat : Type
but is expected to have type
IO PUnit : Type
doIssue.lean:18:7-18:20: error: application type mismatch
pure (xs.set! 0 1)
argument
xs.set! 0 1
has type
Array Nat : Type
but is expected to have type
PUnit : Type