Created
December 8, 2011 20:21
-
-
Save mdekstrand/1448381 to your computer and use it in GitHub Desktop.
Code that fails to match
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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