File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed 
jvm/src/test/scala-2.x/scala/xml Expand file tree Collapse file tree 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
44
55class  CompilerErrors  extends  CompilerTesting  {
66  @ 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:
924                      |  (f: scala.xml.Node => Boolean)scala.xml.NodeSeq <and> 
1025                      |  (i: Int)scala.xml.Node 
1126                      | cannot be applied to ()"""  .stripMargin,
1227     """ |object Test {
1328        |  <e></e>() 
1429        |}"""  )
30+   }
1531
1632  @ Test 
1733  def  t1878_typer () = 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments