Just a minor cosmetic thingy, but shoudn't it be something like: A class instance can't be invoked, or the like?
No, because it could just be null. Accessing a null variable does not mean accessing its fields and methods. The error C#.NET gives, a tad more appropriately, is "Only assignment, call, increment, decrement, and new object expressions can be used as a statement".
Edit: Didn't realize this was a revived thread. I read it as only being hours ago and not years ago. The error reported by Monkey X now still doesn't make much sense, but at least it doesn't say what it used to say. Now all it reports is "Error : Identifier 'variable' not found".
|