File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer
library/src-bootstrapped/scala
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ class Namer { typer: Typer =>
505
505
* @pre `child` must have a position.
506
506
*/
507
507
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
509
509
def insertInto (annots : List [Annotation ]): List [Annotation ] =
510
510
annots.find(_.symbol == defn.ChildAnnot ) match {
511
511
case Some (Annotation .Child (other)) if other.pos.exists && childStart <= other.pos.start =>
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ object NonEmptyTuple {
473
473
}
474
474
475
475
@ showAsInfix
476
- sealed class *: [+ H , + T <: Tuple ] extends Object with NonEmptyTuple
476
+ sealed class *: [+ H , + T <: Tuple ] extends NonEmptyTuple
477
477
478
478
object *: {
479
479
inline def unapply [H , T <: Tuple ](x : H *: T ) = (x.head, x.tail)
You can’t perform that action at this time.
0 commit comments