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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,6 @@ The `-Xsource:3` flag enables the following Scala 3 syntaxes in Scala 2:
46
46
-`import p.{given, *}`
47
47
-`case C(xs*)` as an alias for `case C(xs @ _*)`
48
48
-`A & B` type intersection as an alias for `A with B`
49
-
- Selecting a method `x.f` performs an eta-expansion (`x.f _`), even without an expected type
50
49
51
50
## Scala 3 migration warnings in detail
52
51
@@ -106,6 +105,7 @@ The following table shows backported Scala 3 language semantics available in `-X
106
105
|`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
106
|`infer-override`: override type inference | fatal warning | inferred type of member uses type of overridden member |
|`eta-expand-always`: `x.f` eta-expands (`x.f _`) even without an expected type | compilation error ("missing argument list") |`x.f` expands to a function value |
0 commit comments