diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-06-15 17:50:04 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-06-15 17:50:04 +0200 |
commit | 506a5e334d57084322fa89119d72fa96beb824b6 (patch) | |
tree | 83401f75400ac373e5ae68d633bbf9de2b6ce8d9 /tests/run/t4742.scala | |
parent | c4c29e393afb7175422053924b7e1e5a30131c4c (diff) | |
download | dotty-506a5e334d57084322fa89119d72fa96beb824b6.tar.gz dotty-506a5e334d57084322fa89119d72fa96beb824b6.tar.bz2 dotty-506a5e334d57084322fa89119d72fa96beb824b6.zip |
Enable tests that succeed.
Diffstat (limited to 'tests/run/t4742.scala')
-rw-r--r-- | tests/run/t4742.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/t4742.scala b/tests/run/t4742.scala new file mode 100644 index 000000000..47656049b --- /dev/null +++ b/tests/run/t4742.scala @@ -0,0 +1,7 @@ +trait T { val x: Int = 0 } +object O extends T { override final val x = 1 } + +object Test extends dotty.runtime.LegacyApp { + // was throwing an UnitializedFieldError as constant 1 is folded into the accessor + assert((O: T).x == 1) +} |