Skip to content

Commit

Permalink
Test that fields are correctly set before super constructor is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkDimius committed Aug 21, 2015
1 parent 908603b commit 6c7d972
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/run/i763.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
abstract class A {
val s: Int
assert(s == 1)
}

class B(val s: Int) extends A

object Test extends B(1) {
def main(args: Array[String]): Unit = {
s
}
}

0 comments on commit 6c7d972

Please sign in to comment.