Skip to content

Commit 68a7c03

Browse files
Merge pull request #9995 from dotty-staging/fix-index-out-of-bounds
Fix index out of bounds
2 parents 0011538 + 6d1fd2a commit 68a7c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ExpandPrivate extends MiniPhase with IdentityDenotTransformer { thisPhase
7878
j -= 1
7979
}
8080
(i < 0 || p1(i) == separatorChar) &&
81-
(j < 0 || p1(j) == separatorChar)
81+
(j < 0 || p2(j) == separatorChar)
8282
}
8383

8484
assert(d.symbol.source.exists &&

0 commit comments

Comments
 (0)