You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve rendering of messages with multi-line code positions. Two improvements:
- Add a blank line between the error message proper and the code lines that follow it.
- If there are more than 3 code lines following it, summarize them by printing
the first and last line and a `...` in between.
Copy file name to clipboardExpand all lines: tests/neg-custom-args/captures/boundary-homebrew.check
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
|where: ?=> refers to a fresh root capability created in anonymous function of type (using l1²: boundary.Label[boundary.Label[Int]^]^): boundary.Label[Int]^ when checking argument to parameter body of method apply
11
11
| ^ refers to the universal root capability
12
12
| cap is a fresh root capability created in anonymous function of type (using l2: boundary.Label[Int]^'s2): Int of parameter parameter l2² of method $anonfun
Copy file name to clipboardExpand all lines: tests/neg-custom-args/captures/classifiers-secondclass.check
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
|Note that capability f.write is not included in capture set {cap.only[Read]}.
8
8
|
9
9
|where: cap is a fresh root capability created in anonymous function of type (f²: Levels.File^): Unit when checking argument to parameter op of method parReduce
10
+
|
10
11
42 | f.write(42) // the error stems from here
11
12
43 | a + b + f.read() // ok
12
13
|
@@ -20,6 +21,7 @@
20
21
|Note that capability f.write is not included in capture set {cap.only[Read]}.
21
22
|
22
23
|where: cap is a fresh root capability created in anonymous function of type (g²: Levels.File^): Unit when checking argument to parameter op of method parReduce
24
+
|
23
25
54 | f.write(42) // the error stems from here
24
26
55 | a + b + f.read() + g.read() // ok
25
27
|
@@ -33,6 +35,7 @@
33
35
|Note that capability g.write is not included in capture set {cap.only[Read]}.
34
36
|
35
37
|where: cap is a fresh root capability created in anonymous function of type (g²: Levels.File^): Unit when checking argument to parameter op of method parReduce
0 commit comments