typedef Exception A; typedef Exception B; void main() { try { throw new A("test"); } catch (B) { // this shouldn't happen, but does } catch (A) { // this ought to happen? } } Note, however, that dmd doesn't complain that the first catch masks the second, unlike when I write "catch (Exception) {...} catch (A) {...}." Something's up!
Fixed DMD 1.018 and DMD 2.002
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル