@objc enum values do not display with distinguishing information in debugger

Originator:jalkut
Number:rdar://26062445 Date Originated:03-May-2016 09:18 AM
Status:Open Resolved:
Product:Developer Tools Product Version:7.3.1 GM Seed
Classification:UI/Usability Reproducible:Always
 
Summary:
When the values from an @objc declared Swift enum are displayed in the debugger, they show up as generic expressions of their type, without any indication as to their specific case variation.

Steps to Reproduce:
1. Open the attached playground (contents also pasted below)
2. Allow the playground to be evaluated and show the results for each of the example enum arrays.

========
//: Playground - noun: a place where people can play

import Cocoa

enum NativeEnum: Int {
	case FirstItem = 0
	case SecondItem
	case ThirdItem
}

let myNativeEnumValues: Array<NativeEnum> = [.FirstItem, .SecondItem, .ThirdItem]

@objc enum LocalEnum: Int {
	case FirstItem = 0
	case SecondItem
	case ThirdItem
}

let myObjCEnumValue: Array<LocalEnum> = [.FirstItem, .SecondItem, .ThirdItem]
========

Expected Results:
The array comprising @objc enumeration values should be as meaningful as the array comprising native Swift enumeration values:

[FirstItem, SecondItem, ThirdItem]

Actual Results:
The array comprising @objc enumeration values prints with an unhelpful assertion of the element types:

[LocalEnum, LocalEnum, LocalEnum]

Version:
Version 7.3.1 (7D1012)

Notes:


Configuration:
MacBook Pro 2014 edition 15"

Attachments:
'EnumPrinting.playground.zip' was successfully uploaded.

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!