Skip to content

Commit 6a5d6f0

Browse files
committed
Compile semanticdb tests using -Yno-inline
1 parent 863cf1d commit 6a5d6f0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

project/Build.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ object Build {
378378
baseDirectory in (Compile, run) := baseDirectory.value / "..",
379379
baseDirectory in Test := baseDirectory.value / "..",
380380
unmanagedSourceDirectories in Test += baseDirectory.value / "input" / "src" / "main" / "scala",
381+
scalacOptions in Test ++= Seq("-Yno-inline"),
381382
libraryDependencies ++= List(
382383
("org.scalameta" %% "semanticdb" % "4.0.0").withDottyCompat(scalaVersion.value),
383384
"com.novocode" % "junit-interface" % "0.11",

semanticdb/input/src/main/scala/example/DottyPredef.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ class PredefsDotty {
44
locally {
55
val x: Int => Int = _ => ???
66
}
7-
//assert(true)
8-
//assert(false, "bonjour")
7+
assert(true)
8+
assert(false, "bonjour")
99
}

semanticdb/test/dotty/semanticdb/Tests.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ class Tests {
212212
//@Test def testSynthetic(): Unit = checkFile("example/Synthetic.scala")
213213
//@Test def testBinaryOp(): Unit = checkFile("example/BinaryOp.scala")
214214
//@Test def testAnonymous(): Unit = checkFile("example/Anonymous.scala")
215-
//@Test def testDottyPredef(): Unit = checkFile("example/DottyPredef.scala")
215+
@Test def testDottyPredef(): Unit = checkFile("example/DottyPredef.scala")
216216
@Test def testCase(): Unit = checkFile("example/Case.scala")
217-
@Test def teastCase(): Unit = checkFile("example/Example.scala")
218-
219217

220218
}

0 commit comments

Comments
 (0)