Guest User

Untitled

a guest
Mar 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. trait Foo { def foo: String }
  2.  
  3. case class Bar[T <: Foo](t: T)
  4.  
  5. def doSth(bar: Bar[_]) = bar.t.foo
  6.  
  7. def doSth[T <: Foo](bar: Bar[T]) = bar.t.foo
Add Comment
Please, Sign In to add comment