File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/compiler/scala/tools/nsc/transform Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -1207,21 +1207,7 @@ abstract class Mixin extends InfoTransform with ast.TreeDSL {
1207
1207
val iface = toInterface(sym.owner.tpe).typeSymbol
1208
1208
val ifaceGetter = sym getter iface
1209
1209
1210
- def si6231Restriction () {
1211
- // See SI-6231 comments in LamdaLift for ideas on how to lift the restriction.
1212
- val msg = sm """ Implementation restriction: local ${iface.fullLocationString} is unable to automatically capture the
1213
- |free variable ${sym} on behalf of ${currentClass}. You can manually assign it to a val inside the trait,
1214
- |and refer to that val in ${currentClass}. For more details, see SI-6231. """
1215
- reporter.error(tree.pos, msg)
1216
- }
1217
-
1218
- if (ifaceGetter == NoSymbol ) {
1219
- if (sym.isParamAccessor) {
1220
- si6231Restriction()
1221
- EmptyTree
1222
- }
1223
- else abort(" No getter for " + sym + " in " + iface)
1224
- }
1210
+ if (ifaceGetter == NoSymbol ) abort(" No getter for " + sym + " in " + iface)
1225
1211
else typedPos(tree.pos)((qual DOT ifaceGetter)())
1226
1212
1227
1213
case Assign (Apply (lhs @ Select (qual, _), List ()), rhs) =>
You can’t perform that action at this time.
0 commit comments