diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-16 14:50:42 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-16 14:50:42 +0100 |
commit | 10ee00edf779fbf8ad74886e523811dd96fbab5e (patch) | |
tree | dda5dced27e3cb16e2fe0c1d850ac16bd768ec68 /tests/pos | |
parent | d8c4ab697aa97da509bc2c943a65e4ec78917211 (diff) | |
download | dotty-10ee00edf779fbf8ad74886e523811dd96fbab5e.tar.gz dotty-10ee00edf779fbf8ad74886e523811dd96fbab5e.tar.bz2 dotty-10ee00edf779fbf8ad74886e523811dd96fbab5e.zip |
Flag trailing `_' following non-function as an error
If `x` is not a function or method, then `x _` should be disallowed.
scalac accepts this and converts it to () => x instead. I'd like
to drop this because it's unnecessary and non-obvious. If
-language:Scala2 is on, the behavior is like Scala 2's but
a migration warning is issued.
Diffstat (limited to 'tests/pos')
0 files changed, 0 insertions, 0 deletions