Skip to content

Commit e450e3b

Browse files
committed
Fix concatenation of multiple strings
1 parent 554cf7a commit e450e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class Definitions {
270270

271271
lazy val String_+ = newMethod(StringClass, nme.raw.PLUS, methOfAny(StringType), Final)
272272
lazy val String_valueOf_Object = StringModule.info.member(nme.valueOf).suchThat(_.info.firstParamTypes match {
273-
case List(pt) => pt isRef ObjectClass
273+
case List(pt) => pt isRef AnyClass
274274
case _ => false
275275
}).symbol
276276

0 commit comments

Comments
 (0)