blob: 4a8a1261eec67427c1034c19b63dea85f837eae8 [file]
import Lean
-- Check that private functionality from Lean.Elab.ErrorUtils isn't exported
/-- error: Unknown constant `Nat.toOrdinal` -/
#guard_msgs in
#check Nat.toOrdinal
/--
error: Invalid field `toOxford`: The environment does not contain `List.toOxford`, so it is not possible to project the field `toOxford` from an expression
["a", "b", "c", "d"]
of type `List String`
-/
#guard_msgs in
#check ["a", "b", "c", "d"].toOxford