We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db058dd commit 39f66d0Copy full SHA for 39f66d0
tests/warn/i20146.scala
@@ -0,0 +1,7 @@
1
+//> using options -Wunused:imports
2
+
3
+def test(list: List[Int]): Int =
4
+ import list.{head => first}
5
+ import list.{length => len} // warn
6
+ import list.{addString => add} // warn
7
+ first + list.length
0 commit comments