mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-30 18:24:00 +00:00
Fix foreign export #294
This commit is contained in:
@@ -836,8 +836,14 @@ diverging_procedures :: proc() {
|
||||
foo();
|
||||
}
|
||||
|
||||
foreign export {
|
||||
bar :: proc "c" () -> i32 {
|
||||
return 123;
|
||||
}
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
when true {
|
||||
when false {
|
||||
general_stuff();
|
||||
union_type();
|
||||
parametric_polymorphism();
|
||||
|
||||
Reference in New Issue
Block a user