File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/interactive
presentation-compiler/test/dotty/tools/pc/utils Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ object Completion:
250250 // https://github.com/scalameta/metals/blob/main/mtags/src/main/scala/scala/meta/internal/mtags/KeywordWrapper.scala
251251 // https://github.com/com-lihaoyi/Ammonite/blob/73a874173cd337f953a3edc9fb8cb96556638fdd/amm/util/src/main/scala/ammonite/util/Model.scala
252252 private def needsBacktick (s : String ) =
253- val chunks = s.split(" _" , - 1 ).nn
253+ val chunks = s.split(" _" , - 1 )
254254
255255 val validChunks = chunks.zipWithIndex.forall { case (chunk, index) =>
256256 chunk.nn.forall(Chars .isIdentifierPart) ||
@@ -284,7 +284,6 @@ object Completion:
284284 if denot.isType then denot.symbol.showFullName
285285 else denot.info.widenTermRefExpr.show
286286
287-
288287 def isInNewContext (untpdPath : List [untpd.Tree ]): Boolean =
289288 untpdPath match
290289 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:
77
88 javaVersion match
99 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
1111 case None => 8
1212
1313
You can’t perform that action at this time.
0 commit comments