|
5 | 5 | |
|
6 | 6 | | Annotate valBinaryAPI1 with `@binaryAPIAccessor` to generate a stable accessor.
|
7 | 7 | |
|
8 |
| - | Adding @binaryAPIAccessor may break binary compatibility if a previous version of this |
9 |
| - | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked |
10 |
| - | using MiMa. To keep binary you can add the following accessor to class A: |
11 |
| - | @binaryAPI private[A] final def foo$A$$inline$valBinaryAPI1: Int = this.valBinaryAPI1 |
12 |
| - | |
13 | 8 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:10:4 ------------------------------------
|
14 | 9 | 10 | valBinaryAPI2 + // error
|
15 | 10 | | ^^^^^^^^^^^^^
|
|
19 | 14 | |
|
20 | 15 | | Adding @binaryAPI may break binary compatibility if a previous version of this
|
21 | 16 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
22 |
| - | using MiMa. To keep binary you can add the following accessor to class A: |
23 |
| - | @binaryAPI private[A] def foo$A$$inline$valBinaryAPI2: Int = this.valBinaryAPI2 |
24 |
| - | |
| 17 | + | using MiMa. To keep binary compatibility you can use @binaryAPIAccessor on |
| 18 | + | val valBinaryAPI2. |
25 | 19 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:15:6 ------------------------------------
|
26 | 20 | 15 | a.valBinaryAPI2 + // error
|
27 | 21 | | ^^^^^^^^^^^^^^^
|
|
31 | 25 | |
|
32 | 26 | | Adding @binaryAPI may break binary compatibility if a previous version of this
|
33 | 27 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
34 |
| - | using MiMa. To keep binary you can add the following accessor to class B: |
| 28 | + | using MiMa. To keep binary compatibility you can add the following accessor to class B: |
35 | 29 | | @binaryAPI private[B] def inline$valBinaryAPI2$i1(x$0: foo.A): Int = x$0.valBinaryAPI2
|
36 | 30 | |
|
37 | 31 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:24:4 ------------------------------------
|
|
43 | 37 | |
|
44 | 38 | | Adding @binaryAPIAccessor may break binary compatibility if a previous version of this
|
45 | 39 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
46 |
| - | using MiMa. To keep binary you can add the following accessor to class C: |
| 40 | + | using MiMa. To keep binary compatibility you can add the following accessor to class C: |
47 | 41 | | @binaryAPI private[C] final def inline$valBinaryAPI1: Int = this.valBinaryAPI1
|
48 | 42 | |
|
49 | 43 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:25:4 ------------------------------------
|
|
55 | 49 | |
|
56 | 50 | | Adding @binaryAPI may break binary compatibility if a previous version of this
|
57 | 51 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
58 |
| - | using MiMa. To keep binary you can add the following accessor to class C: |
| 52 | + | using MiMa. To keep binary compatibility you can add the following accessor to class C: |
59 | 53 | | @binaryAPI private[C] def inline$valBinaryAPI2: Int = this.valBinaryAPI2
|
60 | 54 | |
|
61 | 55 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:30:6 ------------------------------------
|
|
67 | 61 | |
|
68 | 62 | | Adding @binaryAPI may break binary compatibility if a previous version of this
|
69 | 63 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
70 |
| - | using MiMa. To keep binary you can add the following accessor to class D: |
| 64 | + | using MiMa. To keep binary compatibility you can add the following accessor to class D: |
71 | 65 | | @binaryAPI private[D] def inline$valBinaryAPI2$i2(x$0: foo.C): Int = x$0.valBinaryAPI2
|
72 | 66 | |
|
73 | 67 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:39:4 ------------------------------------
|
|
79 | 73 | |
|
80 | 74 | | Adding @binaryAPIAccessor may break binary compatibility if a previous version of this
|
81 | 75 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
82 |
| - | using MiMa. To keep binary you can add the following accessor to object E: |
| 76 | + | using MiMa. To keep binary compatibility you can add the following accessor to object E: |
83 | 77 | | @binaryAPI private[E] final def inline$valBinaryAPI1: Int = foo.E.valBinaryAPI1
|
84 | 78 | |
|
85 | 79 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:40:4 ------------------------------------
|
|
91 | 85 | |
|
92 | 86 | | Adding @binaryAPI may break binary compatibility if a previous version of this
|
93 | 87 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
94 |
| - | using MiMa. To keep binary you can add the following accessor to object E: |
| 88 | + | using MiMa. To keep binary compatibility you can add the following accessor to object E: |
95 | 89 | | @binaryAPI private[E] def inline$valBinaryAPI2: Int = foo.E.valBinaryAPI2
|
96 | 90 | |
|
97 | 91 | -- Error: tests/neg-custom-args/fatal-warnings/inline-unstable-accessors.scala:45:6 ------------------------------------
|
|
103 | 97 | |
|
104 | 98 | | Adding @binaryAPI may break binary compatibility if a previous version of this
|
105 | 99 | | library was compiled with Scala 3.0-3.3, Binary compatibility should be checked
|
106 |
| - | using MiMa. To keep binary you can add the following accessor to object F: |
| 100 | + | using MiMa. To keep binary compatibility you can add the following accessor to object F: |
107 | 101 | | @binaryAPI private[F] def inline$valBinaryAPI2$i3(x$0: foo.E): Int = x$0.valBinaryAPI2
|
108 | 102 | |
|
0 commit comments