File tree Expand file tree Collapse file tree 3 files changed +19
-21
lines changed
jvm/src/test/scala-2.x/scala/xml Expand file tree Collapse file tree 3 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ language: scala
66
77scala :
88 - 0.27.0-RC1
9- - 2.12.10
10- - 2.13.1
9+ - 2.12.12
10+ - 2.13.3
1111
1212env :
1313 - SCALAJS_VERSION= ADOPTOPENJDK=8
Original file line number Diff line number Diff line change @@ -41,9 +41,17 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
4141 scalacOptions in Test += " -Xxml:coalescing" ,
4242
4343 scalaModuleMimaPreviousVersion := {
44+ <<<<<<< HEAD
4445 if (isDotty.value) None // No such release yet
4546 // else if (System.getenv("SCALAJS_VERSION") == "1.0.0") None
4647 else Some (" 1.3.0" )
48+ ||||||| 172ce22
49+ if (System .getenv(" SCALAJS_VERSION" ) == " 1.0.0" ) None
50+ else Some (" 1.2.0" )
51+ =======
52+ if (System .getenv(" SCALAJS_VERSION" ) == " 1.0.1" ) None
53+ else Some (" 1.2.0" )
54+ >>>>>>> origin/ 1 .x
4755 },
4856 mimaBinaryIssueFilters ++= {
4957 import com .typesafe .tools .mima .core ._
Original file line number Diff line number Diff line change @@ -5,25 +5,15 @@ import org.junit.Test
55class CompilerErrors extends CompilerTesting {
66 @ Test
77 def t7185 () = {
8- // Error message 2.13.1 and earlier:
9- // expectXmlError("""|overloaded method value apply with alternatives:
10- // | (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
11- // | (i: Int)scala.xml.Node
12- // | cannot be applied to ()""".stripMargin,
13- // """|object Test {
14- // | <e></e>()
15- // |}""")
16-
17- // Error message changed in Scala 2.13.2
18- // https://github.com/scala/scala/pull/8592
19- expectXmlError(" overloaded method" , // " apply "
20- """ |object Test {
21- | <e></e>()
22- |}""" )
23- expectXmlError(""" |with alternatives:
24- | (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
25- | (i: Int)scala.xml.Node
26- | cannot be applied to ()""" .stripMargin,
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,
2717 """ |object Test {
2818 | <e></e>()
2919 |}""" )
You can’t perform that action at this time.
0 commit comments