Skip to content

Commit a1fb5d6

Browse files
committed
Merge remote-tracking branch 'origin/1.x' into merge-1.x-to-master-20200915
2 parents a63681b + a2d6d9a commit a1fb5d6

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ language: scala
66

77
scala:
88
- 0.27.0-RC1
9-
- 2.12.10
10-
- 2.13.1
9+
- 2.12.12
10+
- 2.13.3
1111

1212
env:
1313
- SCALAJS_VERSION= ADOPTOPENJDK=8

build.sbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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._

jvm/src/test/scala-2.x/scala/xml/CompilerErrors.scala

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,15 @@ import org.junit.Test
55
class 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
|}""")

0 commit comments

Comments
 (0)