2016-12-27 4 views
1

を作成する私は、私は以下のようTypedefを使用JSONの複数のタイプを持つことが必要:Vibe.data.json.Jsonにtypedefのを使用して、新しいタイプの、暗黙の型変換エラー

alias NewType = Typedef!(Json); 

私はVibe.d JSONバージョンを使用していますDMD64 D Compiler v2.072.0を使用してコンパイルするとき、私は次のメッセージが表示されます:

Error: cannot implicitly convert expression ([cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)0u]) of type ubyte[] to void[32] 

私はマニュアルを読み、Typedefを使用するための任意の制限を見つけることができませんでした。

答えて

関連する問題