File tree 2 files changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/interactive
presentation-compiler/test/dotty/tools/pc/utils 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ object Completion:
253
253
// https://github.com/scalameta/metals/blob/main/mtags/src/main/scala/scala/meta/internal/mtags/KeywordWrapper.scala
254
254
// https://github.com/com-lihaoyi/Ammonite/blob/73a874173cd337f953a3edc9fb8cb96556638fdd/amm/util/src/main/scala/ammonite/util/Model.scala
255
255
private def needsBacktick (s : String ) =
256
- val chunks = s.split(" _" , - 1 ).nn
256
+ val chunks = s.split(" _" , - 1 )
257
257
258
258
val validChunks = chunks.zipWithIndex.forall { case (chunk, index) =>
259
259
chunk.nn.forall(Chars .isIdentifierPart) ||
@@ -287,7 +287,6 @@ object Completion:
287
287
if denot.isType then denot.symbol.showFullName
288
288
else denot.info.widenTermRefExpr.show
289
289
290
-
291
290
def isInNewContext (untpdPath : List [untpd.Tree ]): Boolean =
292
291
untpdPath match
293
292
case _ :: untpd.New (selectOrIdent : (untpd.Select | untpd.Ident )) :: _ => true
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ object JRE:
7
7
8
8
javaVersion match
9
9
case Some (version) if version.startsWith(" 1.8" ) => 8
10
- case Some (version) => version
10
+ case Some (version) => version.toInt // it is better to crash during tests than to run incorrect suite
11
11
case None => 8
12
12
13
13
You can’t perform that action at this time.
0 commit comments