Skip to content

Instantly share code, notes, and snippets.

@mdekstrand
Created December 8, 2011 20:21
Show Gist options
  • Save mdekstrand/1448381 to your computer and use it in GitHub Desktop.
Save mdekstrand/1448381 to your computer and use it in GitHub Desktop.
Code that fails to match
def needState(need: InfoNeed) = {
object needs extends Obj('needs) {
object thisNeed extends Obj(Symbol(need.name)) {
val state = Child[String, Property[String]](Some(this), UserProps.Need.state)
}
}
js match {
case needs.thisNeed.state(st) => Some(st)
case _ => None
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment