aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i1430.scala
blob: 870780695c902bf061c5708426f9041bb9c518d6 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                           
object Test {

  val x: List[String] = List(1) // error: found Int(1), expected: String

  val y: List[List[String]] = List(List(1)) // error: found Int(1), expected: String

  val z: (List[String], List[Int]) = (List(1), List("a")) // error: found Int(1), expected: String // error: found String(a), expected: Int
}