diff options
author | Martin Odersky <odersky@gmail.com> | 2014-08-13 11:31:39 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-13 12:05:05 +0200 |
commit | 34f73ded3519a1df7d278685f3f33facd00f1c58 (patch) | |
tree | 3cf71a8baea0de46c9ca126a1ea2dbd6ea55c731 /tests/pos/opassign.scala | |
parent | 3558e07b8f3a604bfd67c721cdec3eb9db29e7eb (diff) | |
download | dotty-34f73ded3519a1df7d278685f3f33facd00f1c58.tar.gz dotty-34f73ded3519a1df7d278685f3f33facd00f1c58.tar.bz2 dotty-34f73ded3519a1df7d278685f3f33facd00f1c58.zip |
Fix and enable RefChecks
RefChecks is now enabled. Some of the tests had to be fixed to be refchecks-correct.
Diffstat (limited to 'tests/pos/opassign.scala')
-rw-r--r-- | tests/pos/opassign.scala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/pos/opassign.scala b/tests/pos/opassign.scala index 7b8fec652..8f6cad903 100644 --- a/tests/pos/opassign.scala +++ b/tests/pos/opassign.scala @@ -1,28 +1,28 @@ object opassign { - + var count: Int = 0 def next = { count += 1; count } - + var x: Int = 0 x += 1 - + { var x: Int = 0 x += 1 } - + class Ref { - var x: Int + var x: Int = _ } val r = new Ref r.x += 1 - + val arr = new Array[Int](10) arr(0) += 1 - + def f(x: Int): Ref = new Ref f(next).x += 1 - + val buf = new collection.mutable.ListBuffer[Int] buf += 1 -}
\ No newline at end of file +} |