@@ -135,8 +135,7 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
135
135
136
136
for ((info, _) <- tups.tail) {
137
137
report.error(
138
- em " export overload conflicts with export of $firstSym: " +
139
- " a field may not share its exported name with another export" ,
138
+ em " export overload conflicts with export of $firstSym: a field may not share its exported name with another export " ,
140
139
info.pos)
141
140
}
142
141
@@ -264,8 +263,8 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
264
263
.alternatives
265
264
266
265
assert(! alts.isEmpty,
267
- em " Ended up with no alternatives for ${classSym.fullName}:: $name. " +
268
- em " Original set was ${alts} with types ${alts.map(_.info)}" )
266
+ em """ Ended up with no alternatives for ${classSym.fullName}:: $name.
267
+ | Original set was ${alts} with types ${alts.map(_.info)}"" " )
269
268
270
269
val (jsName, isProp) = exportNameInfo(name)
271
270
@@ -309,7 +308,7 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
309
308
if (isProp && methodSyms.nonEmpty) {
310
309
val firstAlt = alts.head
311
310
report.error(
312
- i " Conflicting properties and methods for ${classSym.fullName}:: $name. " ,
311
+ em " Conflicting properties and methods for ${classSym.fullName}:: $name. " ,
313
312
firstAlt.srcPos)
314
313
implicit val pos = firstAlt.span
315
314
js.JSPropertyDef (js.MemberFlags .empty, genExpr(name)(firstAlt.sourcePos), None , None )
@@ -613,7 +612,7 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
613
612
val altsTypesInfo = alts.map(_.info.show).sorted.mkString(" \n " )
614
613
615
614
report.error(
616
- s " Cannot disambiguate overloads for $fullKind $displayName with types \n $altsTypesInfo" ,
615
+ em " Cannot disambiguate overloads for $fullKind $displayName with types \n $altsTypesInfo" ,
617
616
pos)
618
617
}
619
618
0 commit comments