Hi, I am trying to start using Xtend (already read the full documentation) but I am facing some problems. I am using Xtend 2.4 with Eclipse Juno R2 under Linux Mint Maya Kde (idk if this matters). I am writing this:
package prueba
class PruebaXtend {
def static void main(String[] args) {
var valor = 1
valor++
valor+=1
println(valor)
}
}
and eclipse will throw me errors in the "++" and in the "+=" . The message in the last one is "+= cannot be resolved". I tried writing the same in java:
package prueba;
public class Prueba {
public static void main(String[] args) {
int valor = 1;
valor++;
valor += 1;
System.out.println(valor);
}
}
and everything goes all right. What I am doing wrong? That was my first try in Xtend and I failed. I planned to start my new Android project using Xtend but I don't know if more of this weird errors will appear again.
I attached the image showing the errors in Eclipse. Notice the red underline under "++" and under "+="
Thanks for your help!--
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.
<operator_add xtend.jpg>