Classes aren't scoped with functions.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3490
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
This code prints out 2. (I found this example in an old directory. Sorry if I've already submitted it)
int i=2;
void main() {
int i = 5;
class {
void create() {
werror("%O\n", i);
}
}();
}