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

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