diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-03-14 19:17:52 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2016-03-14 19:17:52 -0700 |
commit | d209a377bd73b71cb791f1b262acfe4b20b993c1 (patch) | |
tree | 55f100a96e152615502f2885066fd19e1c10017a /test/files/neg/outer-ref-checks.check | |
parent | 798462e739f23bb498b72675a57e4cc331404945 (diff) | |
parent | e7e1c77092ec0d64a6ecbb8b920d1b4cca74837f (diff) | |
download | scala-d209a377bd73b71cb791f1b262acfe4b20b993c1.tar.gz scala-d209a377bd73b71cb791f1b262acfe4b20b993c1.tar.bz2 scala-d209a377bd73b71cb791f1b262acfe4b20b993c1.zip |
Merge pull request #4974 from szeiger/wip/patmat-outertest
More conservative optimization for unnecessary outer ref checks
Diffstat (limited to 'test/files/neg/outer-ref-checks.check')
-rw-r--r-- | test/files/neg/outer-ref-checks.check | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/files/neg/outer-ref-checks.check b/test/files/neg/outer-ref-checks.check new file mode 100644 index 0000000000..bba7118d79 --- /dev/null +++ b/test/files/neg/outer-ref-checks.check @@ -0,0 +1,24 @@ +outer-ref-checks.scala:5: warning: The outer reference in this type test cannot be checked at run time. + final case class Inner(val s: String) // unchecked warning + ^ +outer-ref-checks.scala:8: warning: The outer reference in this type test cannot be checked at run time. + case Inner(s) => // unchecked warning + ^ +outer-ref-checks.scala:18: warning: The outer reference in this type test cannot be checked at run time. + case Inner(s) => // unchecked warning + ^ +outer-ref-checks.scala:19: warning: The outer reference in this type test cannot be checked at run time. + case O.Inner(s) => // unchecked warning + ^ +outer-ref-checks.scala:41: warning: The outer reference in this type test cannot be checked at run time. + case Inner(s) => // unchecked warning + ^ +outer-ref-checks.scala:46: warning: The outer reference in this type test cannot be checked at run time. + case _: Inner => // unchecked warning + ^ +outer-ref-checks.scala:56: warning: The outer reference in this type test cannot be checked at run time. + case _: (Inner @uncheckedVariance) => // unchecked warning + ^ +error: No warnings can be incurred under -Xfatal-warnings. +7 warnings found +one error found |