Consider: #!/home/andrei/bin/rdmd -w import std.stdio; class Base {} class D1 : Base {} class D2 : Base {} void main(string[] args) { auto b = args ? new D1 : new D2; } This program should compile and run, deducing Base as b's type. It fails to compile as written. Replacing "auto" with "Base" still doesn't help.
Fixed dmd 1.030 and 2.014
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル