mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-21 13:55:45 +00:00
Fix anonymous procedures and their dependencies
This commit is contained in:
+8
-15
@@ -10,22 +10,15 @@ import (
|
||||
"utf8.odin";
|
||||
)
|
||||
|
||||
type Byte_Size f64;
|
||||
const (
|
||||
_ = iota; // ignore first value by assigning to blank identifier
|
||||
KB Byte_Size = 1 << (10 * iota);
|
||||
// Because there is no type or expression, the previous one is used but
|
||||
// with `iota` incremented by one
|
||||
MB;
|
||||
GB;
|
||||
TB;
|
||||
PB;
|
||||
EB;
|
||||
)
|
||||
|
||||
|
||||
proc main() {
|
||||
fmt.println("Here");
|
||||
var x = proc() -> int {
|
||||
proc print_here() {
|
||||
fmt.println("Here");
|
||||
}
|
||||
|
||||
print_here();
|
||||
return 1;
|
||||
};
|
||||
fmt.println(x());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user