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
valsourceReader=StringSetting ("-Xsource-reader", "classname", "Specify a custom method for reading source files.", "")
126
126
valreporter=StringSetting ("-Xreporter", "classname", "Specify a custom subclass of FilteringReporter for compiler messages.", "scala.tools.nsc.reporters.ConsoleReporter")
127
127
privatevalXsourceHelp=
128
-
sm"""|-Xsource:3 is for migrating a codebase, -Xsource-features can be added for
129
-
|cross-building to adopt certain Scala 3 behavior.
128
+
sm"""|-Xsource:3 is for migrating a codebase. -Xsource-features can be added for
129
+
|cross-building to adopt certain Scala 3 behaviors.
130
130
|
131
131
|See also "Scala 2 with -Xsource:3" on docs.scala-lang.org.
if (cdef.symbol.hasAbstractFlag || mexists(classParamss)(isDisallowed)) None
272
-
else {
268
+
valclassParamss= constrParamss(cdef)
269
+
defcopyOK= {
270
+
defwarn() =if (currentRun.isScala3) runReporting.warning(cdef.namePos, "case `copy` method is allowed to have by-name parameters under Scala 3 (or with -Xsource-features:case-copy-by-name)", Scala3Migration, cdef.symbol)
0 commit comments