daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface Listener
  2.  
  3. fun <T> generic(b: T) where T : Fragment, T : Listener {
  4.  
  5. }
  6.  
  7.  
  8. val target = Fragment()
  9. val listener = target as Listener
  10. generic(listener) // <-- listener but not fragment
RAW Paste Data
Top