diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-04-18 17:33:20 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-06-07 14:18:27 +0200 |
commit | 7408f144589079ca5d0087e1d9ae3f44c5882f79 (patch) | |
tree | a72910963108c2ed1353b4ce2487f6776dbefdc7 /tests/neg/static-no-companion.scala | |
parent | 2e5ab542921bd5cf16cda398dc9e40e6af14dd72 (diff) | |
download | dotty-7408f144589079ca5d0087e1d9ae3f44c5882f79.tar.gz dotty-7408f144589079ca5d0087e1d9ae3f44c5882f79.tar.bz2 dotty-7408f144589079ca5d0087e1d9ae3f44c5882f79.zip |
Test #1220
Diffstat (limited to 'tests/neg/static-no-companion.scala')
-rw-r--r-- | tests/neg/static-no-companion.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/neg/static-no-companion.scala b/tests/neg/static-no-companion.scala new file mode 100644 index 000000000..982dddf88 --- /dev/null +++ b/tests/neg/static-no-companion.scala @@ -0,0 +1,4 @@ +import annotation.static +object T { + @static val foo = 10 // error: needs companion class +} |