too_new.sleela
impl/tests/version/too_new.sleela · 10 line(s) · sleela
#sleela 4.0
// A future MAJOR syntax version. A version-aware compiler that supports the current
// 1.0 .. 3.1 syntax range MUST reject this file (SL-META-0001 Section 4.4): the
// declared version exceeds the compiler's supported range.
class TooNew {
void main() {
print("this must not run on a <=3.0 compiler");
}
}