Created
August 16, 2016 13:40
-
-
Save ionoy/99e07fbf5dfbf00854e124827a5dc9a7 to your computer and use it in GitHub Desktop.
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
mutable adders; | |
c.Scope.FindMany(s => true, ref adders); | |
foreach (adder in adders) { | |
def parms = adder.ParameterScope | |
.GetSymbols() | |
.OfType.[FormalParameterSymbol]() | |
.ToArray(); | |
when (parms.Length != 1) continue; | |
when (adderType.IsDescendant(parms[0].Type)) | |
return Some(adder) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment