|
1 | 1 | -- [E164] Declaration Error: tests/neg-custom-args/captures/unbox-overrides.scala:8:6 ---------------------------------- |
2 | 2 | 8 | def foo[C^]: Object^{C} // error |
3 | 3 | | ^ |
4 | | - |error overriding method foo in trait A of type [C >: scala.caps.CapSet <: scala.caps.CapSet^]: Object^{C}; |
5 | | - | method foo of type [C >: scala.caps.CapSet <: scala.caps.CapSet^²]: Object^{C} has a parameter C with different @reserve status than the corresponding parameter in the overridden definition |
6 | | - | |
7 | | - |where: ^ refers to a root capability in the type of type C² |
8 | | - | ^² refers to a root capability in the type of type C³ |
| 4 | + |error overriding method foo in trait A of type [C^]: Object^{C}; |
| 5 | + | method foo of type [C^]: Object^{C} has a parameter C with different @reserve status than the corresponding parameter in the overridden definition |
9 | 6 | | |
10 | 7 | | longer explanation available when compiling with `-explain` |
11 | 8 | -- [E164] Declaration Error: tests/neg-custom-args/captures/unbox-overrides.scala:9:6 ---------------------------------- |
12 | 9 | 9 | def bar[@reserve C^]: Object^{C} // error |
13 | 10 | | ^ |
14 | | - |error overriding method bar in trait A of type [C >: scala.caps.CapSet <: scala.caps.CapSet^]: Object^{C}; |
15 | | - | method bar of type [C >: scala.caps.CapSet <: scala.caps.CapSet^²]: Object^{C} has a parameter C with different @reserve status than the corresponding parameter in the overridden definition |
16 | | - | |
17 | | - |where: ^ refers to a root capability in the type of type C² |
18 | | - | ^² refers to a root capability in the type of type C³ |
| 11 | + |error overriding method bar in trait A of type [C^]: Object^{C}; |
| 12 | + | method bar of type [C^]: Object^{C} has a parameter C with different @reserve status than the corresponding parameter in the overridden definition |
19 | 13 | | |
20 | 14 | | longer explanation available when compiling with `-explain` |
21 | 15 | -- [E164] Declaration Error: tests/neg-custom-args/captures/unbox-overrides.scala:15:15 -------------------------------- |
22 | 16 | 15 |abstract class C extends A, B2 // error |
23 | 17 | | ^ |
24 | | - |error overriding method foo in trait A of type [C >: scala.caps.CapSet <: scala.caps.CapSet^]: Object^{C}; |
25 | | - | method foo in trait B2 of type [C >: scala.caps.CapSet <: scala.caps.CapSet^²]: Object^{C} has a parameter C with different @reserve status than the corresponding parameter in the overridden definition |
26 | | - | |
27 | | - |where: ^ refers to a root capability in the type of type C² |
28 | | - | ^² refers to a root capability in the type of type C³ |
| 18 | + |error overriding method foo in trait A of type [C^]: Object^{C}; |
| 19 | + | method foo in trait B2 of type [C^]: Object^{C} has a parameter C with different @reserve status than the corresponding parameter in the overridden definition |
29 | 20 | | |
30 | 21 | | longer explanation available when compiling with `-explain` |
0 commit comments