Tried it in NetBeans. No errors or warnings until I tried to run it. The Scala REPL, on the other hand, refused to take that nonsense.

scala> val o: java.lang.Object = 10
<console>:11: error: the result type of an implicit conversion must be more spec
ific than Object
val o: java.lang.Object = 10
^

is a composer and photographer from Detroit, Michigan. He has been working on a Java program to display certain mathematical diagrams.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store