Skip to content

Commit 2101733

Browse files
committed
Fix concatenation of multiple strings
1 parent b062aee commit 2101733

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
@@ -273,7 +273,7 @@ class Definitions {
273273

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

0 commit comments

Comments
 (0)