A few more test cases (old behaviour shown):

```
scala> {(a: Int) => import scala._}
<console>:1: error: ';' expected but '}' found.
       {(a: Int) => import scala._}
                                  ^

scala> 1 match { case 1 => import scala._ }
<console>:1: error: ';' expected but '}' found.
       1 match { case 1 => import scala._ }
                                          ^
```