Accessing enum rawValue from UI test fails to compile.

Originator:d4rkf1br3
Number:rdar://25456632 Date Originated:31/03/2016
Status:open Resolved:
Product:Xcode 7.3 Product Version:7.3
Classification:Serious bug Reproducible:Always
 
See attached project.

In the UITest there is code that accesses the rawValue property of an enum defined as

enum Foo:String {...}

Xcode does not indicate any problems with access the rawValue of this enum from with the UI test.

However the compiler fails to see the getter for the rawValue property.

Steps to Reproduce:
1. Open attached project.
2. Compile the UI test.
3. Examine build log.

Expected Results:
UI test should compile and run.

Actual Results:
Compilation failure accessing enum rawValue getter.

Version:
XCode 7.3

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!