SuperStrict
Struct STest
Field i:Int
Method New(i:Int)
Self.i = i
End Method
End Struct
Function PassStruct(s:STest Var)
End Function
PassStruct(New STest(10))
This creates invalid C code but might better throw an error?
(tried with most current bcc, brl, pub ...)
[ 84%] Compiling:untitled1.bmx.console.release.linux.x64.c
/BlitzMaxNG/tmp/.bmx/untitled1.bmx.console.release.linux.x64.c: In function â_bb_mainâ:
/BlitzMaxNG/tmp/.bmx/untitled1.bmx.console.release.linux.x64.c:129:27: error: incompatible type for argument 1 of â_m_untitled1_PassStructâ
_m_untitled1_PassStruct(bbt_);
^~~~
/BlitzMaxNG/tmp/.bmx/untitled1.bmx.console.release.linux.x64.c:65:6: note: expected âstruct _m_untitled1_STest *â but argument is of type âstruct _m_untitled1_STestâ
void _m_untitled1_PassStruct(struct _m_untitled1_STest* bbt_s){
^~~~~~~~~~~~~~~~~~~~~~~
Build Error: failed to compile (256) /BlitzMaxNG/tmp/.bmx/untitled1.bmx.console.release.linux.x64.c
Process complete
This creates invalid C code but might better throw an error? (tried with most current bcc, brl, pub ...)