3048 case TYP: |
3048 case TYP: |
3049 // For types, the computed type equals the symbol's type, |
3049 // For types, the computed type equals the symbol's type, |
3050 // except for two situations: |
3050 // except for two situations: |
3051 owntype = sym.type; |
3051 owntype = sym.type; |
3052 if (owntype.hasTag(CLASS)) { |
3052 if (owntype.hasTag(CLASS)) { |
|
3053 chk.checkForBadAuxiliaryClassAccess(tree.pos(), env, (ClassSymbol)sym); |
3053 Type ownOuter = owntype.getEnclosingType(); |
3054 Type ownOuter = owntype.getEnclosingType(); |
3054 |
3055 |
3055 // (a) If the symbol's type is parameterized, erase it |
3056 // (a) If the symbol's type is parameterized, erase it |
3056 // because no type parameters were given. |
3057 // because no type parameters were given. |
3057 // We recover generic outer type later in visitTypeApply. |
3058 // We recover generic outer type later in visitTypeApply. |