method override void --> Integer

25 views
Skip to first unread message

Diego Coronel

unread,
May 17, 2013, 9:22:07 AM5/17/13
to ceylon-dev
Hi, this code give me an error only when i try to use the method print()...

shared interface A {
shared default void method( Integer a = 1 ) {
    }
}

shared class B() satisfies A {
shared actual Integer method( Integer a ) {
return a;
    }
}

shared void run() {
print(" B: ``B().method()`` ");
}

Error Message: [Backend error] cannot find symbol symbol: method longValue() location: class java.lang.Object

i dont know it its right to override void to integer...

Stephane Epardaud

unread,
May 17, 2013, 9:25:43 AM5/17/13
to ceylon-dev
This is a bug, can you report it to the jvm compiler please?


--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+...@googlegroups.com.
To post to this group, send email to ceylo...@googlegroups.com.
Visit this group at http://groups.google.com/group/ceylon-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Stéphane Épardaud

Diego Coronel

unread,
May 17, 2013, 9:59:25 AM5/17/13
to ceylon-dev

Stephane Epardaud

unread,
May 17, 2013, 10:00:25 AM5/17/13
to ceylon-dev
Thanks.
Reply all
Reply to author
Forward
0 new messages