Only conversion operators can be declared '<keyword>'
An Operator Statement specifies Widening or Narrowing when the operator is not a conversion operator.
Every operator must be declared as both Public and Shared. However, only a conversion operator can be declared with Widening or Narrowing, but not both.
An operator definition can optionally include the Overloads and Shadows keywords. No other keywords are permitted in an Operator Statement.
Error ID: BC33019
- Remove the
Widening
orNarrowing
keyword from the operator definition. These do not apply, because no type conversion is taking place.
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: