Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support implicit conversion for number types #2

Open
Serg046 opened this issue Nov 24, 2019 · 0 comments
Open

Support implicit conversion for number types #2

Serg046 opened this issue Nov 24, 2019 · 0 comments

Comments

@Serg046
Copy link
Owner

Serg046 commented Nov 24, 2019

public void M() {
    int a = 6;
    Test(a, "");
}
    
public void Test(double x, string y) {}

The construction above compiles to this

        IL_0000: ldc.i4.6
        IL_0001: stloc.0
        IL_0002: ldarg.0
        IL_0003: ldloc.0
        IL_0004: conv.r8
        IL_0005: ldstr ""
        IL_000a: call instance void C::Test(float64, string)

Add support for such conversions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant