Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scala> class Foo
- defined class Foo
- scala> trait FooT extends Foo
- defined trait FooT
- scala> class Bar extends FooT
- defined class Bar
- scala> new Bar().isInstanceOf[Foo]
- res0: Boolean = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement