Constant expression not representable in type '<typename>'

You are trying to evaluate a constant that will not fit into the target type, usually because it is overflowing the range.

Error ID: BC30439

To correct this error

  • Change the target type to one that can handle the constant.

See Also

Concepts

Constants Overview

Other Resources

Constants and Enumerations (Visual Basic)