Skip to content
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

SWIFT_OBJC_INTEROP_MODE = objcxx; breaks Notification.Names #73072

Open
JessyCatterwaul opened this issue Apr 17, 2024 · 0 comments
Open

SWIFT_OBJC_INTEROP_MODE = objcxx; breaks Notification.Names #73072

JessyCatterwaul opened this issue Apr 17, 2024 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. clang importer Area → compiler: The clang importer

Comments

@JessyCatterwaul
Copy link

JessyCatterwaul commented Apr 17, 2024

Description

I'm sure this is the tip of the iceberg for a bigger issue, but I'm new to C++ interop, and this is the first breakage I've had, so I'm documenting it.

Reproduction

import GameController

let name = Notification.Name.GCControllerDidConnect

Switch SWIFT_OBJC_INTEROP_MODE from objc to objcxx.

Type 'Notification.Name' (aka 'NSNotification.Name') has no member 'GCControllerDidConnect'

Expected behavior

.GCControllerDidConnect continues to work, after switching the setting.

Environment

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)

Additional information

No response

@JessyCatterwaul JessyCatterwaul added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Apr 17, 2024
@hborla hborla added clang importer Area → compiler: The clang importer and removed triage needed This issue needs more specific labels labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. clang importer Area → compiler: The clang importer
Projects
None yet
Development

No branches or pull requests

2 participants