Open jakubtomsu opened 1 year ago
Odin: dev-2023-05-nightly:0c352213 OS: Windows 10 Professional (version: 22H2), build 19045.2965 CPU: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz RAM: 32681 MiB
I should be able to assign variables with multiple levels of using.
using
Bar :: struct { a: f32, } Foo :: struct { using bar: ^Bar, b: i32, } do_foo :: proc(using foo: Foo) { foo.a = 123 // Works a = 123 // Doesn't work (Error: Cannot assign to 'a') }
This shows:
D:/projects/odin-metroidvania/build.odin(86:5) Error: Cannot assign to 'a' a = 123 ^
Tangent: I know this is a bug but I do kind of regret allowing using in this way 😜
Lol, yeah I could see using begin used to make the code more convoluted / difficult to understand...
Context
Expected Behavior
I should be able to assign variables with multiple levels of
using
.Steps to Reproduce
This shows: