Guest User

Untitled

a guest
Jan 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. def anyMap(a: Any): Unit = a match {
  2. case _: Map[Any, Any] =>
  3. }
  4. //warning: non-variable type argument Any in type pattern scala.collection.immutable.Map[Any,Any] (the underlying of Map[Any,Any]) is unchecked since it is eliminated by erasure
  5.  
  6. def intList(a: Any): Unit = a match {
  7. case _: List[Int] =>
  8. }
  9. //warning: non-variable type argument Int in type pattern List[Int] (the underlying of List[Int]) is unchecked since it is eliminated by erasure
  10.  
  11. def anyList(a: Any): Unit = a match {
  12. case _: List[Any] =>
  13. }
  14. //[crickets]
Add Comment
Please, Sign In to add comment