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
1. Mutable and ExclsuiveCapability are not longer classifiers. This means
Mutable classes can capture other capabilities. Red is still a classifier.
2. Update methods in nested classes can access exclsuive capabilities external
to enclosing classes.
Copy file name to clipboardExpand all lines: tests/neg-custom-args/captures/lazyvals-sep.check
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@
34
34
|Note that {cap} is an exclusive capture set of the mutable type Ref^,
35
35
|it cannot subsume a read-only capture set of the mutable type Ref^{TestClass.this.r.rd}.
36
36
|
37
-
|where: ^ and cap refer to a fresh root capability classified as Mutable created in lazy value lazyVal8 when checking argument to parameter ref of constructor Wrapper
37
+
|where: ^ and cap refer to a fresh root capability created in lazy value lazyVal8 when checking argument to parameter ref of constructor Wrapper
38
38
|
39
39
| longer explanation available when compiling with `-explain`
40
40
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyvals-sep.scala:77:12 ---------------------------------
@@ -48,7 +48,7 @@
48
48
|Note that {cap} is an exclusive capture set of the mutable type Ref^,
49
49
|it cannot subsume a read-only capture set of the mutable type Ref^{TestClass.this.r.rd}.
50
50
|
51
-
|where: ^ and cap refer to a fresh root capability classified as Mutable created in lazy value lazyVal9 when checking argument to parameter ref of constructor Wrapper
51
+
|where: ^ and cap refer to a fresh root capability created in lazy value lazyVal9 when checking argument to parameter ref of constructor Wrapper
52
52
|
53
53
| longer explanation available when compiling with `-explain`
0 commit comments