Skip to content

Commit 3616eea

Browse files
committed
Fix failing fuzzy test
1 parent be7f82f commit 3616eea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ class Namer { typer: Typer =>
505505
* @pre `child` must have a position.
506506
*/
507507
final def addChild(cls: Symbol, child: Symbol)(implicit ctx: Context): Unit = {
508-
val childStart = child.pos.start
508+
val childStart = if (child.pos.exists) child.pos.start else -1
509509
def insertInto(annots: List[Annotation]): List[Annotation] =
510510
annots.find(_.symbol == defn.ChildAnnot) match {
511511
case Some(Annotation.Child(other)) if other.pos.exists && childStart <= other.pos.start =>

library/src-bootstrapped/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ object NonEmptyTuple {
473473
}
474474

475475
@showAsInfix
476-
sealed class *:[+H, +T <: Tuple] extends Object with NonEmptyTuple
476+
sealed class *:[+H, +T <: Tuple] extends NonEmptyTuple
477477

478478
object *: {
479479
inline def unapply[H, T <: Tuple](x: H *: T) = (x.head, x.tail)

0 commit comments

Comments
 (0)