public void AmbiguousOverloadAsArgument() { TypeWithOverloads target = new TypeWithOverloads(); dynamic d = 2; Assert.Throws <RuntimeBinderException>(() => target.DoNothing(1, d)); }
public void AmbiguousOverloadAsTarget() { dynamic d = new TypeWithOverloads(); Assert.Throws <RuntimeBinderException>(() => d.DoNothing(1, 2)); }