Passing enum parameter to a case class does not work

Posted by kostaa on Stack Overflow See other posts from Stack Overflow or by kostaa
Published on 2010-05-10T18:41:54Z Indexed on 2010/05/10 18:44 UTC
Read the original article Hit count: 149

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about scala

Related posts about enumeration