https://issues.dlang.org/show_bug.cgi?id=14677
--- Comment #2 from Dicebot <pub...@dicebot.lv> --- Vladimir, sorry, but this doesn't look like duplicate to me. Your linked issue was about rejecting legitimate cast. My report is about checking cast correctness at e2ir stage which makes illegal casts accepted inside is(typeof()) --