Skip to content

Commit 631084c

Browse files
committed
Fix bootstrap: manual eta-expand to avoid warnings
1 parent c5101ce commit 631084c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

compiler/src/dotty/tools/backend/sjs/JSExportsGen.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,12 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
330330
if (isProp)
331331
genExportProperty(alts, jsName, static)
332332
else
333-
genExportMethod(alts.map(Exported), jsName, static)
333+
genExportMethod(alts.map(Exported.apply), jsName, static)
334334
}
335335
}
336336

337337
def genJSConstructorDispatch(alts: List[Symbol]): (Option[List[js.ParamDef]], js.JSMethodDef) = {
338-
val exporteds = alts.map(Exported)
338+
val exporteds = alts.map(Exported.apply)
339339

340340
val isConstructorOfNestedJSClass = exporteds.head.isConstructorOfNestedJSClass
341341
assert(exporteds.tail.forall(_.isConstructorOfNestedJSClass == isConstructorOfNestedJSClass),
@@ -391,7 +391,7 @@ final class JSExportsGen(jsCodeGen: JSCodeGen)(using Context) {
391391
} else {
392392
val formalArgsRegistry = new FormalArgsRegistry(1, false)
393393
val List(arg) = formalArgsRegistry.genFormalArgs()
394-
val body = genExportSameArgc(jsName, formalArgsRegistry, setters.map(Exported), static, None)
394+
val body = genExportSameArgc(jsName, formalArgsRegistry, setters.map(Exported.apply), static, None)
395395
Some((arg, body))
396396
}
397397
}

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ object Parsers {
7777
if source.isSelfContained then new ScriptParser(source)
7878
else new Parser(source)
7979

80-
private val InCase: Region => Region = Scanners.InCase
81-
private val InCond: Region => Region = Scanners.InBraces
80+
private val InCase: Region => Region = Scanners.InCase.apply
81+
private val InCond: Region => Region = Scanners.InBraces.apply
8282

8383
abstract class ParserCommon(val source: SourceFile)(using Context) {
8484

scala3doc/src/dotty/dokka/tasty/ScalaDocSupport.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ trait ScaladocSupport { self: TastyParser =>
8080
addOpt(parsed.version)(dkkd.Version(_))
8181
addOpt(parsed.since)(dkkd.Since(_))
8282
addOpt(parsed.deprecated)(dkkd.Deprecated(_))
83-
addSeq(parsed.todo)(ScalaTagWrapper.Todo)
84-
addSeq(parsed.see)(ScalaTagWrapper.See)
85-
addSeq(parsed.note)(ScalaTagWrapper.Note)
86-
addSeq(parsed.example)(ScalaTagWrapper.Example)
83+
addSeq(parsed.todo)(ScalaTagWrapper.Todo.apply)
84+
addSeq(parsed.see)(ScalaTagWrapper.See.apply)
85+
addSeq(parsed.note)(ScalaTagWrapper.Note.apply)
86+
addSeq(parsed.example)(ScalaTagWrapper.Example.apply)
8787

8888
addOpt(parsed.constructor)(dkkd.Constructor(_))
8989
addSeq(parsed.valueParams){ case (name, tag) =>

0 commit comments

Comments
 (0)