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

☣️[Sema] Transform initializers into coercions for conforming numeric literals #15311

Closed

Commits on Mar 17, 2018

  1. [Sema] Transform initializers into coercions for conforming numeric l…

    …iterals
    
    To speed up type-checking for numeric literal types let's try to
    implicitly convert expressions like `UInt32(42)` into `42 as UInt32`
    but only if requested type conforms to the correct literal protocol.
    
    The desired outcome is that we can properly type-check expressions
    like `UInt64(0xffff_ffff_ffff_ffff)` and speed up solving of more
    complex expressions by avoiding checking all of the initializer
    overloads since most of them are likely unrelated.
    xedin committed Mar 17, 2018
    Configuration menu
    Copy the full SHA
    4039e0f View commit details
    Browse the repository at this point in the history