Closed
Description
import scala.concurrent.duration.{Duration, FiniteDuration}
class Test {
def test(d: Duration) = d match {
case finite: FiniteDuration =>
case d =>
}
}
-- [E120] Only null matched Warning: tests/allan/Test.scala:7:9 ----------------
7 | case d =>
| ^
| Only null is matched. Consider using `case null =>` instead.
one warning found