Skip to content

Commit

Permalink
[dotnet] Fail! .^find_method's signature should be :($obj, $name), no…
Browse files Browse the repository at this point in the history
…t just :($name).
  • Loading branch information
jnthn committed Oct 22, 2010
1 parent 06d78a2 commit 52f9692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dotnet/runtime/Metamodel/KnowHOW/KnowHOWBootstrapper.cs
Expand Up @@ -80,10 +80,10 @@ public static RakudoObject Bootstrap()
var Positionals = (Cap as P6capture.Instance).Positionals;
var HOW = Positionals[0] as KnowHOWREPR.KnowHOWInstance;
RakudoObject Method;
if (HOW.Methods.TryGetValue(Ops.unbox_str(TC, Positionals[1]), out Method))
if (HOW.Methods.TryGetValue(Ops.unbox_str(TC, Positionals[2]), out Method))
return Method;
else
throw new InvalidOperationException("No such method " + Ops.unbox_str(TC, Positionals[1]));
throw new InvalidOperationException("No such method " + Ops.unbox_str(TC, Positionals[2]));
}));
KnowHOWMeths.Add("compose", CodeObjectUtility.WrapNativeMethod((TC, Ignored, Cap) =>
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/runtime/Metamodel/SharedTable.cs
Expand Up @@ -54,7 +54,7 @@ public sealed class SharedTable
TC, HOW, "find_method", Hints.NO_HINT);
// Call it.
var Cap = CaptureHelper.FormWith(new RakudoObject[] { HOW, Ops.box_str(TC, Name, TC.DefaultStrBoxType) });
var Cap = CaptureHelper.FormWith(new RakudoObject[] { HOW, Obj, Ops.box_str(TC, Name, TC.DefaultStrBoxType) });
return Meth.STable.Invoke(TC, Meth, Cap);
}
};
Expand Down

0 comments on commit 52f9692

Please sign in to comment.