Skip to content

Commit f9772fd

Browse files
committed
disable explicit nulls for scalatest
This is because scalatest uses scala-xml and we compiled that without explicit nulls. Ideally we would use flexible types on Scala code compiled without explicit nulls, in addition to on Java-defined code. Then it might be feasible to port scalatest to explicit nulls.
1 parent c47ee77 commit f9772fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ object projects:
291291
// Problem parsing scalatest.dotty/target/scala-3.0.0-M2/src_managed/main/org/scalatest/concurrent/ConductorFixture.scala:[602..624..3843], documentation may not be generated.
292292
// dotty.tools.dotc.core.MissingType:
293293
dependencies = List(scalaXml),
294-
testOnlyDependencies = () => List(scalatestplusJunit, scalatestplusTestNG)
294+
testOnlyDependencies = () => List(scalatestplusJunit, scalatestplusTestNG),
295+
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Yexplicit-nulls")
295296
)
296297

297298
lazy val scalatestplusScalacheck = SbtCommunityProject(

0 commit comments

Comments
 (0)