|
1 |
| --- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:4:13 ---------------------------------------- |
2 |
| -4 | val x = Foo(m) // error |
| 1 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:5:13 ---------------------------------------- |
| 2 | +5 | val x = Foo(m) // error |
3 | 3 | | ^^^^^^
|
4 |
| - | Found: Foo{val m: (Bar.this.m² : STR^)}^{Bar.this.m²} |
5 |
| - | Required: Foo |
| 4 | + | Found: test.Foo{val m: (Bar.this.m² : test.STR^)}^{Bar.this.m²} |
| 5 | + | Required: test.Foo |
6 | 6 | |
|
7 | 7 | | where: ^ refers to a fresh root capability in the type of value m²
|
8 | 8 | | m is a value in class Foo
|
9 | 9 | | m² is a value in class Bar
|
10 | 10 | |
|
11 | 11 | |
|
12 |
| - | Note that the expected type Foo |
| 12 | + | Note that the expected type test.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 : STR^)}^{Bar.this.m} |
| 15 | + | The new inferred type test.Foo{val m: (Bar.this.m : test.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:6:13 ---------------------------------------- |
20 |
| -6 | val x = Foo(m) // error |
| 19 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:7:13 ---------------------------------------- |
| 20 | +7 | val x = Foo(m) // error |
21 | 21 | | ^^^^^^
|
22 |
| - | Found: Foo{val m: (Baz.this.m² : STR^)}^{Baz.this.m²} |
23 |
| - | Required: Foo |
| 22 | + | Found: test.Foo{val m: (Baz.this.m² : test.STR^)}^{Baz.this.m²} |
| 23 | + | Required: test.Foo |
24 | 24 | |
|
25 | 25 | | where: ^ refers to a fresh root capability in the type of value m²
|
26 | 26 | | m is a value in class Foo
|
27 | 27 | | m² is a value in trait Baz
|
28 | 28 | |
|
29 | 29 | |
|
30 |
| - | Note that the expected type Foo |
| 30 | + | Note that the expected type test.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 : STR^)}^{Baz.this.m} |
| 33 | + | The new inferred type test.Foo{val m: (Baz.this.m : test.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:8:13 ---------------------------------------- |
38 |
| -8 | val x = Foo(m) // error |
| 37 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:9:13 ---------------------------------------- |
| 38 | +9 | val x = Foo(m) // error |
39 | 39 | | ^^^^^^
|
40 |
| - | Found: Foo{val m: (Bar1.this.m² : STR^)}^{Bar1.this.m²} |
41 |
| - | Required: Foo |
| 40 | + | Found: test.Foo{val m: (Bar1.this.m² : test.STR^)}^{Bar1.this.m²} |
| 41 | + | Required: test.Foo |
42 | 42 | |
|
43 | 43 | | where: ^ refers to a fresh root capability in the type of value m²
|
44 | 44 | | m is a value in class Foo
|
45 | 45 | | m² is a value in class Bar1
|
46 | 46 | |
|
47 | 47 | |
|
48 |
| - | Note that the expected type Foo |
| 48 | + | Note that the expected type test.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 : STR^)}^{Bar1.this.m} |
| 51 | + | The new inferred type test.Foo{val m: (Bar1.this.m : test.STR^)}^{Bar1.this.m} |
52 | 52 | | must conform to this type.
|
53 | 53 | |
|
54 | 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 |
| 55 | +-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/i15116.scala:11:13 --------------------------------------- |
| 56 | +11 | val x = Foo(m) // error |
57 | 57 | | ^^^^^^
|
58 |
| - | Found: Foo{val m: (Baz2.this.m² : STR^)}^{Baz2.this.m²} |
59 |
| - | Required: Foo |
| 58 | + | Found: test.Foo{val m: (Baz2.this.m² : test.STR^)}^{Baz2.this.m²} |
| 59 | + | Required: test.Foo |
60 | 60 | |
|
61 | 61 | | where: ^ refers to a fresh root capability in the type of value m²
|
62 | 62 | | m is a value in class Foo
|
63 | 63 | | m² is a value in trait Baz2
|
64 | 64 | |
|
65 | 65 | |
|
66 |
| - | Note that the expected type Foo |
| 66 | + | Note that the expected type test.Foo |
67 | 67 | | is the previously inferred type of value x
|
68 | 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} |
| 69 | + | The new inferred type test.Foo{val m: (Baz2.this.m : test.STR^)}^{Baz2.this.m} |
70 | 70 | | must conform to this type.
|
71 | 71 | |
|
72 | 72 | | longer explanation available when compiling with `-explain`
|
0 commit comments