## Compiler version 3.* ## Minimized code <!-- This code should be self contained, compilable (with possible failures) and as small as possible. Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. --> ```Scala object PartialFunctionNoWarning { // nice warning "abc" match { case "abc" => case "abc" => } // no warnings val pf: PartialFunction[String, Unit] = { case "abc" => case "abc" => } } ``` ## Output "unreachable code" when using `match`. ## Expectation "unreachable code" shows when using partial function syntax too. In scala 2 it does show a warning.