Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created August 26, 2010 14:55
Show Gist options
  • Select an option

  • Save RobertFischer/551535 to your computer and use it in GitHub Desktop.

Select an option

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.
abstract class X {
val foo:String
val bar = makeBar(foo)
}
class Y extends X {
val foo = "Hello, World!"
}
@RobertFischer
Copy link
Copy Markdown
Author

Assuming that "makeBar(foo)" does something like "foo.blah()".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment