Open milessabin opened 5 years ago
Note that this is not specific to inline matches or to higher-kinded types.
scala> () match { case t: a => t }
1 |() match { case t: a => t }
| ^
| Not found: type a
Pattern matching is currently full of weird inconsistencies
Pattern matching has restructions, as is the case in all languages. Unless someone will make a focussed and prolonged effort to change this, it will stay that way.
The following is rejected,
with,