diff options
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala b/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala index fb3eba823b..94ae6be3e4 100644 --- a/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala +++ b/src/compiler/scala/tools/nsc/transform/SpecializeTypes.scala @@ -1233,6 +1233,9 @@ abstract class SpecializeTypes extends InfoTransform with TypingTransformers { else sym1 eq sym2 } + // initialize the current owner to the enclosing class + currentOwner = targetClass + /** All private members that are referenced are made protected, * in order to be accessible from specialized subclasses. */ |