Join GitHub today
"cannot reduce visibility" of an inherited method in an inner class #4583
changed the title from
weird error message with the interface
"cannot reduce visibility" of an inherited method in an inner class
Jul 28, 2016
@benfry Is this code supposed to run? Adding public to methods in inner classes is not a feature we support. Rather it's caused by "dumbness" of the method regexp, which adds public to all void methods. If you change return type to something else then void it won't work. I'd mark this as an enhancement.
@JakubValtar The problem is that
Not sure what you mean re: return types changing—I don't see that in the code here.
@benfry Ah, sorry about the return type. I thought about a wrong regexp.
Is the preprocessor supposed to add
Should I modify the error checker to visit inner classes when adding