Dirac
22710180
- Reaction score
- 147
I've encountered an unexpected problem on using static ifs while coding zinc.
example (returns syntax error)It seems that static ifs work fine inside functions, anywhere else return syntax errors, how to fix this issue? Should i stop coding in Zinc?
example (returns syntax error)
JASS:
module SomeModule{
static if(SomeMethod.exists){
static method A(){
call SomeMethod();}
}
else{
static method A(){
//do nothing
}
}
}