Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.6, 2.2.0-beta-1
-
None
Description
For this class:
class StringIterator implements Iterator<String> { void remove() { } boolean hasNext() { false } def next() { 3 } }
The compiler should complain that next doesn't have return type String.