Open NachoSoto opened 7 years ago
This is not a regression btw, I've seen this for as long as I can remember, I just never bothered to file it...
This seems fixed in Swift 4.0. Given that this bug wasn't screened though I wonder if there are regression tests for this though?
@nkcsgexi Can you check if there's a regression test and add one if there isn't?
This is broken again
@slavapestov We do have test on this case: https://github.com/apple/swift/blob/master/test/IDE/complete_enum_elements.swift
Could you attach the source file for reproducing? I cannot reproduce locally with a toy example.
@NachoSoto Can you verify whether the issue is still present in the latest Xcode release? We do indeed have quite some test cases for this in the file mentioned by Xi
Attachment: Download
Environment
Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42) Swift version 4.0.2 (swiftlang-900.0.69.1 clang-900.0.38)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | CodeCompletion, Compiler | |Labels | Bug, TypeChecker | |Assignee | @nkcsgexi | |Priority | Medium | md5: 3f5617c817e3a5ad98b2f2fe12db4c38Issue Description:
Write the following code on Xcode:
Expected results:
Only a, b, and c are displayed.
Actual result: