The current class wrapper functionality built for handling anonymous class references also gets called for references to private and internal classes.
If the class is an inner class, the compile of the wrapper class fails when trying to compile a top level class outside of namespaces with periods in the name.