Compare enclosing type of local class.