Re: Generics question

41 views
Skip to first unread message

Vlad Dumitrescu

unread,
Apr 22, 2013, 2:35:00 AM4/22/13
to xtend...@googlegroups.com
Hi!

This works for me with 2.4.1... did you check the generated code?

regards,
Vlad

On Mon, Apr 22, 2013 at 12:02 AM, <christian....@gmail.com> wrote:
class XComparisonTest {
    def compareSome() {
        println(24.lessThan(42)) 
    }
    def <T extends Comparable<T>> lessThan(T a, T b) {
        a.compareTo(b) < 0
    }
}


Sebastian Zarnekow

unread,
Apr 22, 2013, 3:04:25 AM4/22/13
to xtend...@googlegroups.com
That was a bug in 2.4.0 indeed. Please make sure to use version 2.4.1.

Best regards,
Sebastian
 

--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages