Created
August 26, 2010 14:55
-
-
Save RobertFischer/551535 to your computer and use it in GitHub Desktop.
The order of initialization is vital in Scala; it's hosing things up for me.
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
abstract class X { | |
val foo:String | |
val bar = makeBar(foo) | |
} | |
class Y extends X { | |
val foo = "Hello, World!" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming that "makeBar(foo)" does something like "foo.blah()".