diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-01 12:26:02 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-01 12:26:02 +0100 |
commit | 3badc4d8219385ad0f3bcc77790681a7e7c6d088 (patch) | |
tree | 232d86e4a522e9f2b8473ba7b347e5a4eebcf177 /tests/neg/i871.scala | |
parent | 08e880231ff5facd55a80bed0391b22fe85a9f44 (diff) | |
download | dotty-3badc4d8219385ad0f3bcc77790681a7e7c6d088.tar.gz dotty-3badc4d8219385ad0f3bcc77790681a7e7c6d088.tar.bz2 dotty-3badc4d8219385ad0f3bcc77790681a7e7c6d088.zip |
Deal gracefully with missing return types of abstract menthods.
1) Better error message: "missing return type" instead of `=' expected.
2) Allow them under language:Scala2
Fixes #871
Diffstat (limited to 'tests/neg/i871.scala')
-rw-r--r-- | tests/neg/i871.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/i871.scala b/tests/neg/i871.scala new file mode 100644 index 000000000..d8e1111a0 --- /dev/null +++ b/tests/neg/i871.scala @@ -0,0 +1,5 @@ +trait Message { + def first(x: Int) + def second + 1 +} |