blob: 870780695c902bf061c5708426f9041bb9c518d6 (
plain) (
tree)
|
|
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
}
|