2

Opaプログラムをコンパイルしようとすると

m: stringmap(list(string)) = StringMap.empty()

次のエラーが表示されます。

Function was found of type ordered_map(string, 'a, String.order) but application expects it to be of type  -> 'b.

私のコードの何が問題なのかを理解するためのヒント/ヘルプをいただければ幸いです。ティア、

--
バフマン

4

1 に答える 1

1

あなたはおそらくこれを書きたいと思うでしょう:

m: stringmap(list(string)) = StringMap.empty

-> 'bあなたが引用した型エラーを指しStringMap.empty()ますが、これは強制と互換性がありません。

于 2011-10-19T07:45:28.253 に答える