diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-12-19 15:18:26 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-12-19 15:30:02 +0100 |
commit | 3b8b24a48b1ebc81eb6154c4f8c8c8d82ac3de48 (patch) | |
tree | 7380161c17a7838057edd5fd5dbe2bfdfbe79252 /src/compiler/scala/tools/nsc/transform/Mixin.scala | |
parent | cca4d51dbf3f8478cb338e6d53e34003e9a3fa45 (diff) | |
download | scala-3b8b24a48b1ebc81eb6154c4f8c8c8d82ac3de48.tar.gz scala-3b8b24a48b1ebc81eb6154c4f8c8c8d82ac3de48.tar.bz2 scala-3b8b24a48b1ebc81eb6154c4f8c8c8d82ac3de48.zip |
Remove obsolete diagnostic error for SI-6231
The previous commit means we no longer have a test that
gets to this point.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/Mixin.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Mixin.scala | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Mixin.scala b/src/compiler/scala/tools/nsc/transform/Mixin.scala index 6da971338f..89f9cb4b06 100644 --- a/src/compiler/scala/tools/nsc/transform/Mixin.scala +++ b/src/compiler/scala/tools/nsc/transform/Mixin.scala @@ -1207,21 +1207,7 @@ abstract class Mixin extends InfoTransform with ast.TreeDSL { val iface = toInterface(sym.owner.tpe).typeSymbol val ifaceGetter = sym getter iface - def si6231Restriction() { - // See SI-6231 comments in LamdaLift for ideas on how to lift the restriction. - val msg = sm"""Implementation restriction: local ${iface.fullLocationString} is unable to automatically capture the - |free variable ${sym} on behalf of ${currentClass}. You can manually assign it to a val inside the trait, - |and refer to that val in ${currentClass}. For more details, see SI-6231.""" - reporter.error(tree.pos, msg) - } - - if (ifaceGetter == NoSymbol) { - if (sym.isParamAccessor) { - si6231Restriction() - EmptyTree - } - else abort("No getter for " + sym + " in " + iface) - } + if (ifaceGetter == NoSymbol) abort("No getter for " + sym + " in " + iface) else typedPos(tree.pos)((qual DOT ifaceGetter)()) case Assign(Apply(lhs @ Select(qual, _), List()), rhs) => |