Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. type Bar = String // <-- compiler error
  2.  
  3. class Foo {
  4. def get: Bar = "hello"
  5. }
  6.  
  7. class Baz {
  8. val foo = new FooImpl()
  9. def bar: Bar = foo.get() // <-- compiler error if type Bar is defined inside of Foo
  10. }
Add Comment
Please, Sign In to add comment