mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
Fix give expressions
This commit is contained in:
@@ -12,11 +12,10 @@ import {
|
||||
}
|
||||
|
||||
proc main() {
|
||||
var cond = true;
|
||||
var msg = if cond {
|
||||
give "hello";
|
||||
var x = if false {
|
||||
give 123;
|
||||
} else {
|
||||
give "goodbye";
|
||||
give 321;
|
||||
};
|
||||
fmt.println(msg);
|
||||
fmt.println(x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user