You can't put statements directly in a class body. They must go in a constructor, method or initializer block.
i don't see that he did that? maybe he edited it. anyway the problem looks obvious to me. both a and b are local variables of class inner. make them member variables and things will probably work as intended.
i take it back. the code makes no sense.
if you eliminate lines 19-23 it will probably work as expected