Closed t-bltg closed 1 year ago
I can confirm this is consistent to the vanilla Julia structs' behavior.
You might move the macro definition @gen
outside the testset?
Sure, done in https://github.com/Suzhou-Tongyuan/ObjectOriented.jl/commit/7f006cdfe34944e378b8a9ca98982742367ac700.
I've also moved the struct outside, to respect the conventions used in runtests.jl
.
Fix corner cases, where class declarations are generated by a macro (hence a block of expressions).
This is valid julia syntax, so it should be allowed (see the added test).
Without this PR, the added test fails with: