File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,4 @@ object Mode {
9393
9494 /** We are in the IDE */
9595 val Interactive = newMode(20 , " Interactive" )
96-
97- /** We are typing the body of a transparent method */
98- val TransparentBody = newMode(21 , " TransparentBody" )
9996}
Original file line number Diff line number Diff line change @@ -1128,8 +1128,7 @@ class Namer { typer: Typer =>
11281128 // it would be erased to BoxedUnit.
11291129 def dealiasIfUnit (tp : Type ) = if (tp.isRef(defn.UnitClass )) defn.UnitType else tp
11301130
1131- var rhsCtx = ctx.addMode(Mode .InferringReturnType )
1132- if (sym.isTransparentMethod) rhsCtx = rhsCtx.addMode(Mode .TransparentBody )
1131+ val rhsCtx = ctx.addMode(Mode .InferringReturnType )
11331132 def rhsType = typedAheadExpr(mdef.rhs, inherited orElse rhsProto)(rhsCtx).tpe
11341133
11351134 // 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