mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 12:44:59 -07:00
Fix give expressions
This commit is contained in:
+4
-5
@@ -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