Swift 3 preview 1 in Xcode 8 and Lowercase enum cases


(Stéphane Lizeray) #1

Hello,

The following enum

enum X {

  case A_B
  
}

is translated to:

enum X {

  case a_b
  
}

which is fine.

But:

enum X {

  case AXX_BYY
  
}

is migrated to:

enum X {

  case axx_BYY
  
}

Shouldn’t it be rather:

enum X {

  case axx_byy
  
}

Thanks,

Stéphane


(Zhao Xin) #2

e
​num should be case-sensitive. If you find it otherwise, you should file a
bug.

Zhaoxin

···

On Wed, Jun 22, 2016 at 5:48 AM, Stéphane Lizeray <swift-users@swift.org> wrote:

Hello,

The following enum

enum X {

case A_B

}

is translated to:

enum X {

case a_b

}

which is fine.

But:

enum X {

case AXX_BYY

}

is migrated to:

enum X {

case axx_BYY

}

Shouldn’t it be rather:

enum X {

case axx_byy

}

Thanks,

Stéphane

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Kostiantyn Koval) #3

Hi,

There is opened issue for this. You can add more info
https://bugs.swift.org/browse/SR-1802

- Kostiantyn