Skip to content

Commit 668084b

Browse files
committed
Cache selectorNames
1 parent bb3a1fb commit 668084b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/StdNames.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ object StdNames {
826826

827827
def newBitmapName(bitmapPrefix: TermName, n: Int): TermName = bitmapPrefix ++ n.toString
828828

829-
def selectorName(n: Int): TermName = "_" + (n + 1)
829+
def selectorName(n: Int): TermName = productAccessorName(n + 1)
830830

831831
object primitive {
832832
val arrayApply: TermName = "[]apply"

0 commit comments

Comments
 (0)