Created
December 23, 2014 17:46
-
-
Save hawkw/612cfd067ae86f7b99fb to your computer and use it in GitHub Desktop.
Probably the single wordiest `for` comprehension I have ever written
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
for { | |
thing <- classState.table.keys.toList if thing != "this" | |
inherited <- classState.parent.get.table.get(thing) if !classState.table.get(thing).get.matches(inherited) | |
} yield { | |
new SemanticException(s"*** Method '$thing' must match inherited type signature",classState.table.get(thing).get.where) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment