'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
- Remove either the
Widening
or theNarrowing
keyword from theOperator
statement. You must specify one or the other.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: