File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1087,7 +1087,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
10871087 case info2 : TypeBounds =>
10881088 compareLower(info2, tyconIsTypeRef = true )
10891089 case info2 : ClassInfo =>
1090- tycon2.name.toString. startsWith(" Tuple" ) &&
1090+ tycon2.name.startsWith(" Tuple" ) &&
10911091 defn.isTupleType(tp2) && recur(tp1, tp2.toNestedPairs) ||
10921092 tryBaseType(info2.cls)
10931093 case _ =>
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ class Instrumentation extends MiniPhase { thisPhase =>
3939 ctx
4040
4141 private def record (category : String , tree : Tree )(using Context ): Tree = {
42- val key = Literal (Constant (s " $category${tree.sourcePos.show}" ))
42+ val key = Literal (Constant (s " $category@ ${tree.sourcePos.show}" ))
4343 ref(defn.Stats_doRecord ).appliedTo(key, Literal (Constant (1 )))
4444 }
4545
4646 override def transformApply (tree : Apply )(using Context ): Tree = tree.fun match {
4747 case Select (nu : New , _) =>
48- cpy.Block (tree)(record(i " alloc/ ${nu.tpe}@ " , tree) :: Nil , tree)
48+ cpy.Block (tree)(record(i " alloc/ ${nu.tpe}" , tree) :: Nil , tree)
4949 case Select (_, name) if namesToRecord.contains(name) =>
5050 cpy.Block (tree)(record(i " alloc/ $name" , tree) :: Nil , tree)
5151 case _ =>
You can’t perform that action at this time.
0 commit comments