File tree Expand file tree Collapse file tree 4 files changed +17
-11
lines changed
jvm/src/test/scala/scala/xml Expand file tree Collapse file tree 4 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ language: scala
66
77scala :
88 - 2.11.12
9- - 2.12.10
10- - 2.13.1
9+ - 2.12.12
10+ - 2.13.3
1111
1212env :
1313 - SCALAJS_VERSION= ADOPTOPENJDK=8
14- - SCALAJS_VERSION=0.6.32 ADOPTOPENJDK=8
14+ - SCALAJS_VERSION=0.6.33 ADOPTOPENJDK=8
1515 - SCALAJS_VERSION=1.0.1 ADOPTOPENJDK=8
1616 - SCALAJS_VERSION= ADOPTOPENJDK=11
1717
1818matrix :
1919 exclude :
2020 - scala : 2.11.12
21- env : SCALAJS_VERSION=0.6.32 ADOPTOPENJDK=8
21+ env : SCALAJS_VERSION=0.6.33 ADOPTOPENJDK=8
2222 - scala : 2.11.12
2323 env : SCALAJS_VERSION=1.0.1 ADOPTOPENJDK=8
2424
Original file line number Diff line number Diff line change @@ -4,14 +4,20 @@ import org.junit.Test
44
55class CompilerErrors extends CompilerTesting {
66 @ Test
7- def t7185 () =
8- expectXmlError(""" |overloaded method value apply with alternatives:
9- | (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
10- | (i: Int)scala.xml.Node
11- | cannot be applied to ()""" .stripMargin,
7+ def t7185 () = {
8+ // the error message here differs a bit by Scala version
9+ import util .Properties .versionNumberString
10+ val thing =
11+ if (versionNumberString.startsWith(" 2.11" ) || versionNumberString.startsWith(" 2.12" )) " method value"
12+ else " method"
13+ expectXmlError(s """ |overloaded $thing apply with alternatives:
14+ | (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
15+ | (i: Int)scala.xml.Node
16+ | cannot be applied to () """ .stripMargin,
1217 """ |object Test {
1318 | <e></e>()
1419 |}""" )
20+ }
1521
1622 @ Test
1723 def t1878_typer () =
Original file line number Diff line number Diff line change 1- sbt.version =1.3.8
1+ sbt.version =1.3.13
Original file line number Diff line number Diff line change 11val scalaJSVersion =
2- Option (System .getenv(" SCALAJS_VERSION" )).filter(_.nonEmpty).getOrElse(" 0.6.32 " )
2+ Option (System .getenv(" SCALAJS_VERSION" )).filter(_.nonEmpty).getOrElse(" 0.6.33 " )
33
44addSbtPlugin(" org.scala-lang.modules" % " sbt-scala-module" % " 2.1.3" )
55addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0" )
You can’t perform that action at this time.
0 commit comments