Skip to content

Commit 6d1fd2a

Browse files
committed
Fix index out of bounds
1 parent 0011538 commit 6d1fd2a

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)