I tried the xtend tutorial and added a new class.
The new class should not compile with following error:
Multiple markers at this line
- Couldn't resolve reference to JvmIdentifiableElement '*'.
- Missing error message for
org.eclipse.xtext.xbase.validation.IssueCodes.invalid_generic_argument_types
What's wrong?
package xtend.tutorial
class Time {
new() { _ms = 0}
new( long ms) { _ms = ms}
new( double ms) {_ms = Math::round( ms)}
new( Time other) {}
long _ms
def long getMs() { return _ms}
def operator_plus( double ms) { new Time( ms * _ms) }
def Time alignTime( long msPerFrame) {
val long newTime = Math::round( (
this.ms as double) / msPerFrame)
val long x = newTime * msPerFrame // <-- error on this line
new Time( x)
}
}
Environment:
OS is Debian Squeeze
I have download eclipse 64-Bit Linux from
http://www.eclipse.org/xtend/#download
and created the xtend-tutorial project