|
1 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:19:28 -------------------------------------- |
2 | | -19 | val ref1c: LazyRef[Int] = ref1 // error |
| 1 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:20:28 -------------------------------------- |
| 2 | +20 | val ref1c: LazyRef[Int] = ref1 // error |
3 | 3 | | ^^^^ |
4 | 4 | | Found: (ref1 : LazyRef[Int]{val elem: () ->{cap1} Int}^{cap1}) |
5 | 5 | | Required: LazyRef[Int] |
6 | 6 | | |
7 | 7 | | longer explanation available when compiling with `-explain` |
8 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:21:35 -------------------------------------- |
9 | | -21 | val ref2c: LazyRef[Int]^{cap2} = ref2 // error |
| 8 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:22:35 -------------------------------------- |
| 9 | +22 | val ref2c: LazyRef[Int]^{cap2} = ref2 // error |
10 | 10 | | ^^^^ |
11 | 11 | | Found: LazyRef[Int]{val elem: () ->{ref2*} Int}^{ref2} |
12 | 12 | | Required: LazyRef[Int]^{cap2} |
13 | 13 | | |
14 | 14 | | longer explanation available when compiling with `-explain` |
15 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:23:35 -------------------------------------- |
16 | | -23 | val ref3c: LazyRef[Int]^{ref1} = ref3 // error |
| 15 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:24:35 -------------------------------------- |
| 16 | +24 | val ref3c: LazyRef[Int]^{ref1} = ref3 // error |
17 | 17 | | ^^^^ |
18 | 18 | | Found: LazyRef[Int]{val elem: () ->{ref3*} Int}^{ref3} |
19 | 19 | | Required: LazyRef[Int]^{ref1} |
20 | 20 | | |
21 | 21 | | longer explanation available when compiling with `-explain` |
22 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:25:35 -------------------------------------- |
23 | | -25 | val ref4c: LazyRef[Int]^{cap1} = ref4 // error |
| 22 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/lazyref.scala:26:35 -------------------------------------- |
| 23 | +26 | val ref4c: LazyRef[Int]^{cap1} = ref4 // error |
24 | 24 | | ^^^^ |
25 | 25 | | Found: LazyRef[Int]{val elem: () ->{ref4*} Int}^{ref4} |
26 | 26 | | Required: LazyRef[Int]^{cap1} |
27 | 27 | | |
28 | 28 | | longer explanation available when compiling with `-explain` |
29 | | --- Error: tests/neg-custom-args/captures/lazyref.scala:24:55 ----------------------------------------------------------- |
30 | | -24 | val ref4 = (if cap1 == cap2 then ref1 else ref2).map(g) // error: separation failure |
| 29 | +-- Error: tests/neg-custom-args/captures/lazyref.scala:25:55 ----------------------------------------------------------- |
| 30 | +25 | val ref4 = (if cap1 == cap2 then ref1 else ref2).map(g) // error: separation failure |
31 | 31 | | ^ |
32 | 32 | |Separation failure: argument of type (x: Int) ->{cap2} Int |
33 | 33 | |to method map: [U](f: T => U): LazyRef[U]^{f, LazyRef.this} |
|
0 commit comments