来源:https://stackoverflow.com/questions/59531680/specifying-type-of-a-case-object-in-either 标签 scala singleton-type