We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8825b07 commit 8f75eabCopy full SHA for 8f75eab
tests/neg/i18632.check
@@ -0,0 +1,5 @@
1
+-- [E176] Potential Issue Warning: tests/neg/i18632.scala:12:2 ---------------------------------------------------------
2
+12 | bar // warn
3
+ | ^^^
4
+ | unused value of type String
5
+No warnings can be incurred under -Werror (or -Xfatal-warnings)
tests/neg/i18632.scala
@@ -0,0 +1,14 @@
+//> using options -Wnonunit-statement -Werror
+
+class Context
+object Foo {
6
+ def run(program: Context ?=> String): Unit = ???
7
+}
8
9
+def bar(using Context): String = ???
10
11
+@main def run = Foo.run:
12
+ bar // warn
13
+ bar
14
+// nopos-error: No warnings can be incurred under -Werror (or -Xfatal-warnings)
0 commit comments