File tree 2 files changed +1
-5
lines changed
compiler/src/dotty/tools/dotc
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,4 @@ object Mode {
93
93
94
94
/** We are in the IDE */
95
95
val Interactive = newMode(20 , " Interactive" )
96
-
97
- /** We are typing the body of a transparent method */
98
- val TransparentBody = newMode(21 , " TransparentBody" )
99
96
}
Original file line number Diff line number Diff line change @@ -1128,8 +1128,7 @@ class Namer { typer: Typer =>
1128
1128
// it would be erased to BoxedUnit.
1129
1129
def dealiasIfUnit (tp : Type ) = if (tp.isRef(defn.UnitClass )) defn.UnitType else tp
1130
1130
1131
- var rhsCtx = ctx.addMode(Mode .InferringReturnType )
1132
- if (sym.isTransparentMethod) rhsCtx = rhsCtx.addMode(Mode .TransparentBody )
1131
+ val rhsCtx = ctx.addMode(Mode .InferringReturnType )
1133
1132
def rhsType = typedAheadExpr(mdef.rhs, inherited orElse rhsProto)(rhsCtx).tpe
1134
1133
1135
1134
// Approximate a type `tp` with a type that does not contain skolem types.
You can’t perform that action at this time.
0 commit comments