Give error for calling a user-defined function at global scope.
This commit is contained in:
@@ -31,7 +31,7 @@ bool radians(bool x) // okay, can overload built-in functions
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
int gi = f(1,2,3); // ERROR, can't call user-defined function from global scope
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user