Guest User

Untitled

a guest
Mar 14th, 2014
209
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. scala> class Foo
  2. defined class Foo
  3.  
  4. scala> trait FooT extends Foo
  5. defined trait FooT
  6.  
  7. scala> class Bar extends FooT
  8. defined class Bar
  9.  
  10. scala> new Bar().isInstanceOf[Foo]
  11. res0: Boolean = true
RAW Paste Data