Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 committed Apr 26, 2024
1 parent 72894aa commit a5470fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/warn/i20146.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//> using options -Wunused:imports

def test(list: List[Int]): Int =
import list.{head => first}
import list.{length => len} // warn
import list.{addString => add} // warn
first + list.length

0 comments on commit a5470fa

Please sign in to comment.