@@ -9,30 +9,48 @@ def Foo.f5 (f : Foo) : Nat := f.n
99error: Invalid field notation: Type of
1010 f
1111is not known; cannot resolve field `n`
12+
13+ Hint: Consider replacing the field projection with a call to one of the following:
14+ • `BitVec.DivModArgs.n`
15+ • `Foo.n`
1216---
1317error: Invalid field notation: Type of
1418 g
1519is not known; cannot resolve field `n`
20+
21+ Hint: Consider replacing the field projection with a call to one of the following:
22+ • `BitVec.DivModArgs.n`
23+ • `Foo.n`
1624---
1725error: Invalid field notation: Type of
1826 f
1927is not known; cannot resolve field `f1`
28+
29+ Hint: Consider replacing the field projection `.f1` with a call to the function `Foo.f1`.
2030---
2131error: Invalid field notation: Type of
2232 g
2333is not known; cannot resolve field `f2`
34+
35+ Hint: Consider replacing the field projection `.f2` with a call to the function `Foo.f2`.
2436---
2537error: Invalid field notation: Type of
2638 h
2739is not known; cannot resolve field `f3`
40+
41+ Hint: Consider replacing the field projection `.f3` with a call to the function `Foo.f3`.
2842---
2943error: Invalid field notation: Type of
3044 f
3145is not known; cannot resolve field `f4`
46+
47+ Hint: Consider replacing the field projection `.f4` with a call to the function `Foo.f4`.
3248---
3349error: Invalid field notation: Type of
3450 g
3551is not known; cannot resolve field `f5`
52+
53+ Hint: Consider replacing the field projection `.f5` with a call to the function `Foo.f5`.
3654---
3755error: Invalid field notation: Type of
3856 h
@@ -51,3 +69,26 @@ is not known; cannot resolve field `foo`
5169-/
5270#guard_msgs in
5371example := fun x => (id x).foo
72+
73+ /--
74+ error: Invalid field notation: Type of
75+ x✝
76+ is not known; cannot resolve field `isWhitespace`
77+
78+ Hint: Consider replacing the field projection `.isWhitespace` with a call to the function `Char.isWhitespace`.
79+ -/
80+ #guard_msgs in
81+ example := (·.isWhitespace)
82+
83+ /--
84+ error: Invalid field notation: Type of
85+ x
86+ is not known; cannot resolve field `succ`
87+
88+ Hint: Consider replacing the field projection with a call to one of the following:
89+ • `Fin.succ`
90+ • `Nat.succ`
91+ • `Std.PRange.succ`
92+ -/
93+ #guard_msgs in
94+ example := fun x => x.succ
0 commit comments