You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/scala3-migration/tooling-scala2-xsource3.md
+10-1
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,7 @@ The following table shows backported Scala 3 language semantics available in `-X
105
105
|`case-apply-copy-access`: modifiers of synthetic methods | fatal warning | constructor modifiers are used for apply / copy methods of case classes |
106
106
|`case-companion-function`: companions are Functions | fatal warning at use site | synthetic case companion objects no longer extend FunctionN, but are adapted at use site with warning |
107
107
|`infer-override`: override type inference | fatal warning | inferred type of member uses type of overridden member |
def x(): Int = x // allowed in Scala 2, double definition error in Scala 3
123
+
}
124
+
{% endhighlight %}
125
+
117
126
### Changes affecting binary encoding
118
127
119
-
As of Scala 2.13.14, there are 3 changes in `-Xsource-features` that affect binary encoding of classfiles:
128
+
As of Scala 2.13.15, there are 3 changes in `-Xsource-features` that affect binary encoding of classfiles:
120
129
121
130
1.`case-apply-copy-access`: the constructor modifiers of case classes (`case class C private[p] (x: Int)`) are copied to the synthetic `apply` and `copy` methods.
122
131
1.`case-companion-function`: the synthetic companion objects of case classes no longer extend `FunctionN`.
0 commit comments