"Expected a type" error on Appkit NSEvent.ModifierFlags enum

When I switch from objc to c++ interop in my Xcode 15 project I'm getting an "Expected a type" error on all references to NSEvent.ModifierFlags in my swift code. A quick google search turned up similar reports (C++ interop flag makes NSTrackingArea behave differently · Issue #65885 · apple/swift · GitHub) but these appear to have been closed prior to shipping? Any ideas? Workarounds?


Could you please file an issue on GitHub - apple/swift: The Swift Programming Language with more details about the error you're getting? It's possible that there are still cases that have issues that need to be fixed.

I am getting a similar error among some others when I turn on C++ interop.