Created
September 4, 2008 18:41
-
-
Save stevej/8842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Bar = String // <-- compiler error | |
class Foo { | |
def get: Bar = "hello" | |
} | |
class Baz { | |
val foo = new FooImpl() | |
def bar: Bar = foo.get() // <-- compiler error if type Bar is defined inside of Foo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment