|
1 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:3:13 ---------------------------------------- |
2 | | -3 | val x = Foo(m) // error |
| 1 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:4:13 ---------------------------------------- |
| 2 | +4 | val x = Foo(m) // error |
3 | 3 | | ^^^^^^ |
4 | | - | Found: Foo{val m: (Bar.this.m² : String^)}^{Bar.this.m²} |
| 4 | + | Found: Foo{val m: (Bar.this.m² : STR^)}^{Bar.this.m²} |
5 | 5 | | Required: Foo |
6 | 6 | | |
7 | 7 | | where: ^ refers to a fresh root capability in the type of value m² |
|
12 | 12 | | Note that the expected type Foo |
13 | 13 | | is the previously inferred type of value x |
14 | 14 | | which is also the type seen in separately compiled sources. |
15 | | - | The new inferred type Foo{val m: (Bar.this.m : String^)}^{Bar.this.m} |
| 15 | + | The new inferred type Foo{val m: (Bar.this.m : STR^)}^{Bar.this.m} |
16 | 16 | | must conform to this type. |
17 | 17 | | |
18 | 18 | | longer explanation available when compiling with `-explain` |
19 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:5:13 ---------------------------------------- |
20 | | -5 | val x = Foo(m) // error |
| 19 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:6:13 ---------------------------------------- |
| 20 | +6 | val x = Foo(m) // error |
21 | 21 | | ^^^^^^ |
22 | | - | Found: Foo{val m: (Baz.this.m² : String^)}^{Baz.this.m²} |
| 22 | + | Found: Foo{val m: (Baz.this.m² : STR^)}^{Baz.this.m²} |
23 | 23 | | Required: Foo |
24 | 24 | | |
25 | 25 | | where: ^ refers to a fresh root capability in the type of value m² |
|
30 | 30 | | Note that the expected type Foo |
31 | 31 | | is the previously inferred type of value x |
32 | 32 | | which is also the type seen in separately compiled sources. |
33 | | - | The new inferred type Foo{val m: (Baz.this.m : String^)}^{Baz.this.m} |
| 33 | + | The new inferred type Foo{val m: (Baz.this.m : STR^)}^{Baz.this.m} |
34 | 34 | | must conform to this type. |
35 | 35 | | |
36 | 36 | | longer explanation available when compiling with `-explain` |
37 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:7:13 ---------------------------------------- |
38 | | -7 | val x = Foo(m) // error |
| 37 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:8:13 ---------------------------------------- |
| 38 | +8 | val x = Foo(m) // error |
39 | 39 | | ^^^^^^ |
40 | | - | Found: Foo{val m: (Bar1.this.m² : String^)}^{Bar1.this.m²} |
| 40 | + | Found: Foo{val m: (Bar1.this.m² : STR^)}^{Bar1.this.m²} |
41 | 41 | | Required: Foo |
42 | 42 | | |
43 | 43 | | where: ^ refers to a fresh root capability in the type of value m² |
|
48 | 48 | | Note that the expected type Foo |
49 | 49 | | is the previously inferred type of value x |
50 | 50 | | which is also the type seen in separately compiled sources. |
51 | | - | The new inferred type Foo{val m: (Bar1.this.m : String^)}^{Bar1.this.m} |
52 | | - | must conform to this type. |
53 | | - | |
54 | | - | longer explanation available when compiling with `-explain` |
55 | | --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:9:13 ---------------------------------------- |
56 | | -9 | val x = Foo(m) // error |
57 | | - | ^^^^^^ |
58 | | - | Found: Foo{val m: (Baz2.this.m² : String^)}^{Baz2.this.m²} |
59 | | - | Required: Foo |
60 | | - | |
61 | | - | where: ^ refers to a fresh root capability in the type of value m² |
62 | | - | m is a value in class Foo |
63 | | - | m² is a value in trait Baz2 |
64 | | - | |
65 | | - | |
66 | | - | Note that the expected type Foo |
67 | | - | is the previously inferred type of value x |
68 | | - | which is also the type seen in separately compiled sources. |
69 | | - | The new inferred type Foo{val m: (Baz2.this.m : String^)}^{Baz2.this.m} |
| 51 | + | The new inferred type Foo{val m: (Bar1.this.m : STR^)}^{Bar1.this.m} |
70 | 52 | | must conform to this type. |
71 | 53 | | |
72 | 54 | | longer explanation available when compiling with `-explain` |
| 55 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:10:13 --------------------------------------- |
| 56 | +10 | val x = Foo(m) // error |
| 57 | + | ^^^^^^ |
| 58 | + | Found: Foo{val m: (Baz2.this.m² : STR^)}^{Baz2.this.m²} |
| 59 | + | Required: Foo |
| 60 | + | |
| 61 | + | where: ^ refers to a fresh root capability in the type of value m² |
| 62 | + | m is a value in class Foo |
| 63 | + | m² is a value in trait Baz2 |
| 64 | + | |
| 65 | + | |
| 66 | + | Note that the expected type Foo |
| 67 | + | is the previously inferred type of value x |
| 68 | + | which is also the type seen in separately compiled sources. |
| 69 | + | The new inferred type Foo{val m: (Baz2.this.m : STR^)}^{Baz2.this.m} |
| 70 | + | must conform to this type. |
| 71 | + | |
| 72 | + | longer explanation available when compiling with `-explain` |
0 commit comments