diff options
Diffstat (limited to 'tests/untried/neg/t6567.check')
-rw-r--r-- | tests/untried/neg/t6567.check | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t6567.check b/tests/untried/neg/t6567.check new file mode 100644 index 000000000..a733d7535 --- /dev/null +++ b/tests/untried/neg/t6567.check @@ -0,0 +1,9 @@ +t6567.scala:8: warning: Suspicious application of an implicit view (Test.this.a2b) in the argument to Option.apply. + Option[B](a) + ^ +t6567.scala:10: warning: Suspicious application of an implicit view (Test.this.a2b) in the argument to Option.apply. + val b: Option[B] = Option(a) + ^ +error: No warnings can be incurred under -Xfatal-warnings. +two warnings found +one error found |