Skip to content

[test] Update ClangImporter/enum-anon.swift for Clang improvements #20804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/ClangImporter/enum-anon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func testDiags() {

let _: String = SR2511().y // expected-error {{cannot convert value of type 'UInt32' to specified type 'String'}}

// FIXME: This constant doesn't seem to be imported at all. At least one of
// the following two names should work.
let _: String = SR2511B // expected-error {{use of unresolved identifier 'SR2511B'}}
// The nested anonymous enum value should still have top-level scope, because
// that's how C works. It should also have the same type as the field (above).
let _: String = SR2511B // expected-error {{cannot convert value of type 'UInt32' to specified type 'String'}}
let _: String = SR2511.SR2511B // expected-error {{type 'SR2511' has no member 'SR2511B'}}
}
#endif
Expand Down