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 3051bb2 commit 58bb697Copy full SHA for 58bb697
scaladoc-testcases/docs/_docs/index.md
@@ -22,3 +22,14 @@ val renderer: Renderer = Renderer()
22
extension (x: Self) def combine(y: Self): Self
23
```
24
25
+```scala sc:fail sc-opts:-Werror:true
26
+def exampleShouldError(input: Option[String]): Unit =
27
+ input match
28
+ case Some("foo") => ???
29
+```
30
+
31
+```scala sc:compile sc-opts:-Werror:false
32
+def exampleShouldWarn(input: Option[String]): Unit =
33
34
35
0 commit comments