Right now variant classes are only supported at namespace-level. Attempting to create one as a nested class will generate invalid code.