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 @@ -1020,7 +1020,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
10201020 case  info2 : TypeBounds  => 
10211021 compareLower(info2, tyconIsTypeRef =  true )
10221022 case  info2 : ClassInfo  => 
1023-  tycon2.name.toString. startsWith(" Tuple"  ) && 
1023+  tycon2.name.startsWith(" Tuple"  ) && 
10241024 defn.isTupleType(tp2) &&  recur(tp1, tp2.toNestedPairs) || 
10251025 tryBaseType(info2.cls)
10261026 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