The types defined in this code are all deprecated. However, the compiler fails to report a single error for their use as function return types. ---------- deprecated { class DepClass {} struct DepStruct {} union DepUnion {} enum DepEnum { A } alias int DepAlias; typedef int DepTypedef; } DepClass returnClass(); DepStruct returnStruct(); DepUnion returnUnion(); DepEnum returnEnum(); DepAlias returnAlias(); DepTypedef returnTypedef(); void useFunction(DepClass function()); void useDelegate(DepStruct delegate()); ----------
Fixed dmd 1.032 and 2.016
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル