Guest User

Untitled

a guest
Nov 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def test[T <: Comparable[T]](a1: T, a2: T): Int = a1.compareTo(a2)
  2.  
  3. test(LocalDate.of(2017,1,2), LocalDate.of(2017, 2, 2))
  4.  
  5. type arguments [java.time.LocalDate] do not conform to method test's type parameter bounds [T <: Comparable[T]] test[LocalDate](a1, a2)
Add Comment
Please, Sign In to add comment