I stumbled across some strange behaviour when comparing Java8 time objects. The below does not appear to be valid code.
val t1 = LocalTime.now()
val t2 = LocalTime.now()
val foo: Int = t1 > t2
Yet hovering over the undersquiggled code shows that the overridden function return type is correct:
Any ideas?