aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t1980.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t1980.check')
-rw-r--r--tests/untried/neg/t1980.check12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/neg/t1980.check b/tests/untried/neg/t1980.check
new file mode 100644
index 000000000..2fa27fa46
--- /dev/null
+++ b/tests/untried/neg/t1980.check
@@ -0,0 +1,12 @@
+t1980.scala:2: warning: by-name parameters will be evaluated eagerly when called as a right-associative infix operator. For more details, see SI-1980.
+ def op1_:(x: => Any) = () // warn
+ ^
+t1980.scala:3: warning: by-name parameters will be evaluated eagerly when called as a right-associative infix operator. For more details, see SI-1980.
+ def op2_:(x: Any, y: => Any) = () // warn
+ ^
+t1980.scala:4: warning: by-name parameters will be evaluated eagerly when called as a right-associative infix operator. For more details, see SI-1980.
+ def op3_:(x: Any, y: => Any)(a: Any) = () // warn
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+three warnings found
+one error found