Enum with identical cases names with associated values of different types

后端 未结 1 1327
不知归路
不知归路 2021-01-05 17:48

The following Swift code compiles:

enum GraphDataSource  {
    case array(data: [Double], start: Double?, step: Double?)
    case pairs(XYValues: [Double: Do         


        
相关标签:
1条回答
  • 2021-01-05 18:00

    This is a Swift compiler bug. See SR-10077.

    0 讨论(0)
提交回复
热议问题