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: src/compiler/scala/tools/nsc/typechecker/Typers.scala
+4-4
Original file line number
Diff line number
Diff line change
@@ -976,12 +976,12 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
976
976
// > // Add a () parameter section if this overrides some method with () parameters
977
977
// > val vparamSymssOrEmptyParamsFromOverride =
978
978
// This means an accessor that overrides a Java-defined method gets a MethodType instead of a NullaryMethodType, which breaks lots of assumptions about accessors)
979
-
defcheckCanAutoApply():Boolean= {
979
+
defcheckCanAutoApply():true= {
980
980
if (!isPastTyper &&!matchNullaryLoosely) {
981
981
valmsg=
982
-
s"""Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method ${meth.decodedName},
983
-
|or remove the empty argument list from its definition (Java-defined methods are exempt).
984
-
|In Scala 3, an unapplied method like this will be eta-expanded into a function.""".stripMargin
982
+
sm"""|Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method ${meth.decodedName},
983
+
|or remove the empty argument list from its definition (Java-defined methods are exempt).
984
+
|In Scala 3, an unapplied method like this will be eta-expanded into a function."""
0 commit comments