Skip to content

Commit fb959f7

Browse files
committed
Refine todo comment
1 parent e64c561 commit fb959f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
179179
val ex = new BadSignature(
180180
sm"""error reading Scala signature of $classRoot from $source:
181181
|error occurred at position $readIndex: $msg""")
182-
if (ctx.debug || true) original.getOrElse(ex).printStackTrace() // temporarilly enable printing of original failure signature to debug failing builds
182+
if (ctx.debug || true) original.getOrElse(ex).printStackTrace() // temporarily enable printing of original failure signature to debug failing builds
183183
throw ex
184184
}
185185

src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,9 @@ trait Applications extends Compatibility { self: Typer =>
925925
/** Drop any implicit parameter section */
926926
def stripImplicit(tp: Type): Type = tp match {
927927
case mt: ImplicitMethodType if !mt.isDependent =>
928-
mt.resultType // todo: make sure implicit method types are not dependent
928+
mt.resultType
929+
// todo: make sure implicit method types are not dependent?
930+
// but check test case in /tests/pos/depmet_implicit_chaining_zw.scala
929931
case pt: PolyType =>
930932
pt.derivedPolyType(pt.paramNames, pt.paramBounds, stripImplicit(pt.resultType))
931933
case _ =>

0 commit comments

Comments
 (0)