diff options
author | Martin Odersky <odersky@gmail.com> | 2015-08-23 23:16:05 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-08-23 23:16:05 +0200 |
commit | f63e8f2b97bc2a84a3e5a041155789f28717632a (patch) | |
tree | 891d65c75e3142ccf1def9bb25f26e08e8de0d1e /tests/neg/singletons.scala | |
parent | b1aecb1a8d0c7982981296ac4bfa67d9db596e24 (diff) | |
download | dotty-f63e8f2b97bc2a84a3e5a041155789f28717632a.tar.gz dotty-f63e8f2b97bc2a84a3e5a041155789f28717632a.tar.bz2 dotty-f63e8f2b97bc2a84a3e5a041155789f28717632a.zip |
Update neg test
It's decided that constant types and purity are independent.
Diffstat (limited to 'tests/neg/singletons.scala')
-rw-r--r-- | tests/neg/singletons.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/neg/singletons.scala b/tests/neg/singletons.scala index 77e2a924f..3bf7ee050 100644 --- a/tests/neg/singletons.scala +++ b/tests/neg/singletons.scala @@ -1,5 +1,4 @@ object Test { - final val y: 2 = { println("x"); 2 } // error: side effect val a: 42 = 43 // error: different constant val x = 42 val z: 42 = x // error: x is not final |