diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-10-15 14:22:51 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-10-15 14:22:51 -0700 |
commit | c71dfa1eefa65d4e8cd61063ea68482af4314913 (patch) | |
tree | ccc3a508da12c46d7b1dbce11546c457358136bf /test/files/pos | |
parent | 9d3f0777ff883a7c59da3fa7fee156890f51701e (diff) | |
download | scala-c71dfa1eefa65d4e8cd61063ea68482af4314913.tar.gz scala-c71dfa1eefa65d4e8cd61063ea68482af4314913.tar.bz2 scala-c71dfa1eefa65d4e8cd61063ea68482af4314913.zip |
SI-6978 No linting of Java parens
Don't lint overriding of nullary by non-nullary
when non-nullary is Java-defined. They can't help it.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t6978.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t6978/J.java | 5 | ||||
-rw-r--r-- | test/files/pos/t6978/S.scala | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t6978.flags b/test/files/pos/t6978.flags new file mode 100644 index 0000000000..7949c2afa2 --- /dev/null +++ b/test/files/pos/t6978.flags @@ -0,0 +1 @@ +-Xlint -Xfatal-warnings diff --git a/test/files/pos/t6978/J.java b/test/files/pos/t6978/J.java new file mode 100644 index 0000000000..1b9029ce53 --- /dev/null +++ b/test/files/pos/t6978/J.java @@ -0,0 +1,5 @@ + +public class J { + public int f() { return 42; } +} + diff --git a/test/files/pos/t6978/S.scala b/test/files/pos/t6978/S.scala new file mode 100644 index 0000000000..41897db5ac --- /dev/null +++ b/test/files/pos/t6978/S.scala @@ -0,0 +1,7 @@ + +trait X { def f: Int } + +object Test extends J with X with App { + println(f) +} + |