Skip to content

Commit d44b49b

Browse files
rochalaWojciechMazur
authored andcommitted
Fix types
1 parent 8b89fbe commit d44b49b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/src/dotty/tools/dotc/interactive/Completion.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ object Completion:
253253
// https://github.com/scalameta/metals/blob/main/mtags/src/main/scala/scala/meta/internal/mtags/KeywordWrapper.scala
254254
// https://github.com/com-lihaoyi/Ammonite/blob/73a874173cd337f953a3edc9fb8cb96556638fdd/amm/util/src/main/scala/ammonite/util/Model.scala
255255
private def needsBacktick(s: String) =
256-
val chunks = s.split("_", -1).nn
256+
val chunks = s.split("_", -1)
257257

258258
val validChunks = chunks.zipWithIndex.forall { case (chunk, index) =>
259259
chunk.nn.forall(Chars.isIdentifierPart) ||
@@ -287,7 +287,6 @@ object Completion:
287287
if denot.isType then denot.symbol.showFullName
288288
else denot.info.widenTermRefExpr.show
289289

290-
291290
def isInNewContext(untpdPath: List[untpd.Tree]): Boolean =
292291
untpdPath match
293292
case _ :: untpd.New(selectOrIdent: (untpd.Select | untpd.Ident)) :: _ => true

presentation-compiler/test/dotty/tools/pc/utils/JRE.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)