scala/scala — comment on commit 39457f6c85fc9764d714d52317edcd4300fd82b8
File: src/compiler/scala/tools/nsc/typechecker/PatMatVirtualiser.scala line 1174
By adriaanm:

// TODO: emit a cast of the scrutinee and a switch on the cast scrutinee if patterns allow switch but the type of the scrutinee doesn't