mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 06:30:09 +01:00
We import C++ enum types as Carbon class types as adapters for the corresponding builtin integer type, and we import enumerator constants as integer constants of that class type. No operators are supported on such values for now; eventually once we start asking Clang to implement operators on C++-owned types, these types should be handled in the same way. However, they can be converted to the corresponding integer type with `as` via adapter conversion, and integer builtin functions can operate on them.