kevingadd/JSIL — Issue #75: Replaced methods are not repaced when called with dynamic arguments
Author: markusjohnsson
Created: 2012-03-08 20:23:37+00:00
State: open

In the test below, the Get method will not get replaced at the call site because it is called with dynamic arguments.

I have no idea how this would work in general.. But in this case since there are no overloads, we could bind the method at compile time.

```csharp
using System;
using JSIL.Meta;

public class Program
{
[JSReplacement("1")]
public static int Get(object o)
{
return 1;
}

public static void Main(string[] args)
{
Console.WriteLine(Get((dynamic)null));
}
}
```