summaryrefslogtreecommitdiff
path: root/test/files/neg/t7187.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t7187.check')
-rw-r--r--test/files/neg/t7187.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t7187.check b/test/files/neg/t7187.check
new file mode 100644
index 0000000000..a30803c746
--- /dev/null
+++ b/test/files/neg/t7187.check
@@ -0,0 +1,6 @@
+t7187.scala:3: warning: Eta-expansion of zero-argument method values is deprecated. Did you intend to write EtaExpandZeroArg.this.foo()?
+ val f: () => Any = foo
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found