summaryrefslogblamecommitdiff
path: root/test/files/neg/t4302.check
blob: 1a59b79a3b02fcaf35aff91aa2db7b0d5d453666 (plain) (tree)
1
2
3
4
5
6
                                                                                                

                                                

                                                          
               
t4302.scala:2: warning: abstract type T in type T is unchecked since it is eliminated by erasure
  def hasMatch[T](x: AnyRef) = x.isInstanceOf[T]
                                             ^
error: No warnings can be incurred under -Xfatal-warnings.
one warning found
one error found