Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

Java

Compiler

OpenJDK HEAD 12-internal

Options
Raw compiler options
-Xlint:all -Werror

Author

anonymous

about 6 years ago

$ javac prog.java -Xlint:all -Werror
prog.java:19: error: incompatible types: Object cannot be converted to Shape
        Shape err = Foo.<Object>find(someShapes, myCircle);  // T = Object
                                    ^
1 error
Exit Code:
1