restructure: move el compiler content into lang/
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// time-comparison.el — Duration < Duration is type-checked at codegen time.
|
||||
// Both operands are DurationLits (postfix literals). Codegen routes through
|
||||
// el_duration_lt; the runtime returns 1 when 5.minutes < 1.hour holds.
|
||||
|
||||
// `test` is reserved; using `run_test` instead.
|
||||
fn run_test() -> Bool {
|
||||
return 5.minutes < 1.hour
|
||||
}
|
||||
|
||||
fn main() -> Void {
|
||||
if run_test() {
|
||||
println("1")
|
||||
} else {
|
||||
println("0")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user