Skip to content

Commit 39f66d0

Browse files
committed
Add test
1 parent db058dd commit 39f66d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/warn/i20146.scala

+7
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)