File tree 1 file changed +18
-2
lines changed
jvm/src/test/scala-2.x/scala/xml
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,30 @@ 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:
7
+ 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:
9
24
| (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and>
10
25
| (i: Int)scala.xml.Node
11
26
| cannot be applied to ()""" .stripMargin,
12
27
""" |object Test {
13
28
| <e></e>()
14
29
|}""" )
30
+ }
15
31
16
32
@ Test
17
33
def t1878_typer () =
You can’t perform that action at this time.
0 commit comments