We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5eceb36 commit eb3ca86Copy full SHA for eb3ca86
tests/pos/given-loop-prevention.scala
@@ -0,0 +1,14 @@
1
+//> using options -Xfatal-warnings
2
+
3
+class Foo
4
5
+object Bar {
6
+ given Foo with {}
7
+ given List[Foo] = List(summon[Foo]) // ok
8
+}
9
10
+object Baz {
11
+ @annotation.nowarn
12
+ given List[Foo] = List(summon[Foo]) // gives a warning, which is suppressed
13
14
tests/pos/i6716.scala
+//> using options -Xfatal-warnings -source 3.4
0 commit comments