Skip to content

Commit ef50c1f

Browse files
committed
Note a regressed error message
1 parent caae86f commit ef50c1f

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

MathlibTest/DifferentialGeometry/Notation.lean

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -547,38 +547,33 @@ section error
547547
-- yields a parse error, "unexpected token '/--'; expected term"
548548
-- #check CMDiffAt[s] f
549549

550-
/--
550+
-- TODO: the old error message here was better; somehow restore it!
551+
/-
551552
error: Type mismatch
552553
f
553554
has type
554555
M → M'
555556
of sort `Type (max u_10 u_4)` but is expected to have type
556557
WithTop ℕ∞
557558
of sort `Type`
558-
---
559+
-/
560+
561+
/--
559562
error: Expected
560563
m
561564
of type
562565
M
563-
to be a function
566+
to be a function, or to be coercible to a function
564567
-/
565568
#guard_msgs in
566569
#check CMDiffAt[s] f m
567570

568571
/--
569-
error: Type mismatch
570-
f
571-
has type
572-
M → M'
573-
of sort `Type (max u_10 u_4)` but is expected to have type
574-
WithTop ℕ∞
575-
of sort `Type`
576-
---
577572
error: Expected
578573
m
579574
of type
580575
M
581-
to be a function
576+
to be a function, or to be coercible to a function
582577
-/
583578
#guard_msgs in
584579
#check CMDiffAt[s] f m

0 commit comments

Comments
 (0)