Missing warning for implicit operator

Hi,

given the following code for a implicit cast operator:


public implicit operator int(A a) {
return a.Whatever;
}


The compiler complains, that the operator must me public static, so I would
like to see a warning from R#


Sincerely,
Stefan Lieser


1 comment
Comment actions Permalink

Thank you.
Ive added the corresponding request to our tracker, and this issue will be
fixed shortly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Stefan Lieser" <slieser@t-online.de> wrote in message
news:dp36fn$efh$1@is.intellij.net...

Hi,

>

given the following code for a implicit cast operator:

>
>

public implicit operator int(A a) {
return a.Whatever;
}

>
>

The compiler complains, that the operator must me public static, so I
would like to see a warning from R#

>
>

Sincerely,
Stefan Lieser



0

Please sign in to leave a comment.