Udostępnij za pośrednictwem


'Widening' and 'Narrowing' cannot be combined

An Operator Statement specifies both Widening and Narrowing.

When you define a conversion operator, you must declare it as either Widening or Narrowing. These are mutually exclusive characteristics, so you cannot specify both.

Error ID: BC33001

To correct this error

  • Remove either the Widening or the Narrowing keyword from the Operator statement. You must specify one or the other.

See Also

Tasks

How to: Define an Operator

How to: Define a Conversion Operator

Concepts

Operator Procedures

Reference

Operator Statement