diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-11-10 17:18:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 17:18:48 +1000 |
commit | c39b31cb14a23ba33e669a06cedd4c1be2dc5b60 (patch) | |
tree | eb445ce99eeb2197f737d99a2321855dea8b964d /test/files | |
parent | e0a0d3d974429531ef2d5283b8468ff8d8290f09 (diff) | |
parent | c71dfa1eefa65d4e8cd61063ea68482af4314913 (diff) | |
download | scala-c39b31cb14a23ba33e669a06cedd4c1be2dc5b60.tar.gz scala-c39b31cb14a23ba33e669a06cedd4c1be2dc5b60.tar.bz2 scala-c39b31cb14a23ba33e669a06cedd4c1be2dc5b60.zip |
Merge pull request #5460 from som-snytt/issue/6978
SI-6978 No linting of Java parens
Diffstat (limited to 'test/files')
-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) +} + |