Passing enum parameter to a case class does not work - by kostaa Can someone tell me why this does not work? case class XY(enum: MyEnum) object MyEnum extends Enumeration { val OP1, OP2 = Value } Error: not found: type MyEnum Read the article