Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait Foo
- val x = new Object
- val y = x with Foo
- // traittest.scala:4: error: ';' expected but 'with' found.
- // val y = x with Foo
- // ^
- // one error found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement