Guest User

Untitled

a guest
Jul 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. trait J
  2. trait K extends J
  3. trait L extends J
  4. trait A[M[_ <: L]]
  5.  
  6. trait X[_ <: K]
  7. //new A[X] {} // type _ (in trait X)'s bounds >: Nothing <: this.K are stricter than type _'s declared bounds >: Nothing <: this.L
  8.  
  9. trait Y[_ <: J]
  10. new A[Y] {} // okay
Add Comment
Please, Sign In to add comment