Closed KitRifty closed 1 year ago
Member functions of methodmaps that return a char[] is incorrectly marked as an error. However, global functions are correctly not marked as errors.
char[]
EDIT: It appears to happen regardless of type. I've updated the example code and title.
char[] MyStr() // this is fine { char str[] = "this"; return str; } int[] MyVec() // same as above { int vec[] = { 0, 0, 0 }; return vec; } float[] MyVec2() // same as above { float vec[] = { 0.0, 0.0, 0.0 }; return vec; } methodmap MyMethods { public static char[] MyStr() // marked as error, specifically on the brackets { char str[] = "MyMethods"; return str; } public static int[] MyVec() // same as above { int vec[] = { 0, 0, 0 }; return vec; } public static float[] MyVec2() // same as above { float vec[] = { 0.0, 0.0, 0.0 }; return vec; } }
No errors.
The original tree-sitter-sourcepawn seems to be inactive, I will use my fork for now.
Basic informations
Further Information
Member functions of methodmaps that return a
char[]
is incorrectly marked as an error. However, global functions are correctly not marked as errors.EDIT: It appears to happen regardless of type. I've updated the example code and title.
Code to reproduce the behaviour
Expected behaviour
No errors.
Error messages