Skip to content

[SR-15218] Enhance interchangeable CGFloat/Double to allow interchange between optional #57540

Open
@mattyoung

Description

@mattyoung
Previous ID SR-15218
Radar rdar://problem/83322839
Original Reporter @mattyoung
Type New Feature
Status In Progress
Resolution
Additional Detail from JIRA
Votes 3
Component/s Compiler
Labels New Feature, StarterBug, TypeChecker
Assignee ldhough (JIRA)
Priority Medium

md5: f6e45c4a9212f2077155f5dc1ee322a7

Issue Description:

Currently passing Double? to parameter of CGFloat? do not work. Please add enhancement to allow such. Additionally, allow multiple level of optionality. Basically allow this:

Double?* <-> CGFloat?* (zero or more level of optionality)

See: https://forums.swift.org/t/why-double-can-pass-to-cgfloat-but-double-cannot/52217/5

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerThe Swift compiler itselfexpressionsFeature: expressionsfeatureA feature request or implementationimplicit conversionsFeature: implicit conversionstype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions