summaryrefslogblamecommitdiff
path: root/test/files/neg/unchecked-suppress.check
blob: 2e23d2138686bfe9b7dcb7144ee43953daeae087 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                                                                                 
unchecked-suppress.scala:4: error: non-variable type argument Int in type pattern Set[Int] is unchecked since it is eliminated by erasure
    case xs: Set[Int]                              => xs.head   // unchecked
             ^
unchecked-suppress.scala:5: error: non-variable type argument String in type pattern Map[String @unchecked,String] is unchecked since it is eliminated by erasure
    case xs: Map[String @unchecked, String]        => xs.head   // one unchecked, one okay
             ^
unchecked-suppress.scala:7: error: non-variable type argument Int in type pattern (Int, Int) => Int is unchecked since it is eliminated by erasure
    case f: ((Int, Int) => Int)                    =>           // unchecked
                        ^
three errors found