lean4-htt/tests/lean/struct1.lean.expected.out
Leonardo de Moura 5d3f0606d2 feat: include type of type in "mismatch errors"
@Kha we do that in Lean 3. It helps when the error is due to incorrect universe levels.

BTW, I had to update `tests/lean/server/content_diag.json` since the
error message is different, but a few other stuff changed too.
Could you please take a look whether the test is still correct?
2021-03-08 09:30:34 -08:00

26 lines
1.2 KiB
Text

struct1.lean:9:14-9:17: error: expected Type
struct1.lean:12:20-12:29: error: expected structure
struct1.lean:15:27-15:33: error: field 'toA' has already been declared
struct1.lean:18:27-18:33: error: field 'x' from 'B' has already been declared
struct1.lean:22:1-22:3: error: invalid field name '_x', identifiers starting with '_' are reserved to the system
struct1.lean:25:3-25:5: error: invalid field name '_y', identifiers starting with '_' are reserved to the system
struct1.lean:29:1-29:2: error: field 'x' has already been declared
struct1.lean:32:1-32:2: error: field 'x' has been declared in parent structure
struct1.lean:35:6-35:10: error: type mismatch
true
has type
Bool : Type
but is expected to have type
Nat : Type
struct1.lean:38:5-38:9: error: omit field 'x' type to set default value
struct1.lean:41:12-41:16: error: type mismatch
true
has type
Bool : Type
but is expected to have type
Nat : Type
struct1.lean:44:0-44:13: error: invalid 'private' constructor in a 'private' structure
struct1.lean:47:0-47:15: error: invalid 'protected' constructor in a 'private' structure
struct1.lean:50:0-50:19: error: invalid 'protected' field in a 'private' structure
S : Type
S.mk2 : Nat → S