scala_school2 icon indicating copy to clipboard operation
scala_school2 copied to clipboard

Initialization order gotchas

Open mergeconflict opened this issue 11 years ago • 0 comments

class Foo {
  val a = 1;
  val b = a + 1;
}

class Bar extends Foo {
  val a = 100;
}

mergeconflict avatar Sep 10 '13 17:09 mergeconflict