File tree 3 files changed +16
-10
lines changed
jvm/src/test/scala/scala/xml
3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ language: scala
6
6
7
7
scala :
8
8
- 2.11.12
9
- - 2.12.10
10
- - 2.13.1
9
+ - 2.12.12
10
+ - 2.13.3
11
11
12
12
env :
13
13
- SCALAJS_VERSION= ADOPTOPENJDK=8
14
- - SCALAJS_VERSION=0.6.32 ADOPTOPENJDK=8
14
+ - SCALAJS_VERSION=0.6.33 ADOPTOPENJDK=8
15
15
- SCALAJS_VERSION=1.0.1 ADOPTOPENJDK=8
16
16
- SCALAJS_VERSION= ADOPTOPENJDK=11
17
17
18
18
matrix :
19
19
exclude :
20
20
- scala : 2.11.12
21
- env : SCALAJS_VERSION=0.6.32 ADOPTOPENJDK=8
21
+ env : SCALAJS_VERSION=0.6.33 ADOPTOPENJDK=8
22
22
- scala : 2.11.12
23
23
env : SCALAJS_VERSION=1.0.1 ADOPTOPENJDK=8
24
24
Original file line number Diff line number Diff line change @@ -4,14 +4,20 @@ import org.junit.Test
4
4
5
5
class CompilerErrors extends CompilerTesting {
6
6
@ 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,
12
17
""" |object Test {
13
18
| <e></e>()
14
19
|}""" )
20
+ }
15
21
16
22
@ Test
17
23
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
You can’t perform that action at this time.
0 commit comments