Please have a look at this PR: https://github.com/dlang/dmd/pull/6140
However, the error message printed with this PR isn't particularly helpful either: Error: incompatible types for ((5) in (m2)): 'int' and 'const(MyTable)'
You might want to add a comment there, and/or open an enhancement request at: https://issues.dlang.org/
