path-dependent-type

    1

    2答えて

    解決策がこれに対応するはずの問題を抱えています:Enumerationを指定してすべてのリストを返すメソッドを記述したいとしますその値。私が書きたい: def makeList[E <: Enumeration](enum: E): List[enum.Value] = enum.values.toList ますが、コンパイルはillegal dependent method typeエラーで