Skip to content

Commit d7d326f

Browse files
committed
Fix index out of bounds exception
1 parent 77d0544 commit d7d326f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
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 &&

dotty-scala-library-from-tasty-tests/test/LibraryTest.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,6 @@ object TastyInspectorTest:
225225
"scala.util.DynamicVariable", // fails on CI only
226226
"scala.util.Using", // fails on CI only
227227

228-
// java.lang.StringIndexOutOfBoundsException: String index out of range: 153
229-
"scala.collection.Iterator",
230-
"scala.Enumeration",
231-
"scala.sys.process.ProcessImpl",
232228
)
233229

234230
/** Set of classes that cannot be loaded from TASTy */

0 commit comments

Comments
 (0)