<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Shouldn't that have been:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$foo : Foo (myEnum == MyEnum.someItem)</div><div><br></div><div>Your field is presumably "myEnum", whereas the class is "MyEnum".</div><div><br></div><br><div><div>On 18 Apr 2013, at 18:19, Sean Su &lt;<a href="mailto:sean.x.su@gmail.com">sean.x.su@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">$foo : Foo (MyEnum == MyEnum.someItem)</span></blockquote></div><br></body></html>