enabling cpp interoperability causing compiler errors

If I switch from objective c to objective c++ interoperability in Xcode 15, I'm getting errors when trying to use NSEvent.ModifierFlags ("Expected a type").

I can't seem to find a workaround.

https://forums.swift.org/t/expected-a-type-error-on-appkit-nsevent-modifierflags-enum/67557

enabling cpp interoperability causing compiler errors
 
 
Q