diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-29 15:46:05 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-29 15:46:05 +0200 |
commit | 78aa68223cc0869d2b103805ccc85d6bdf54a4e7 (patch) | |
tree | 865826d585d5a8e89abdfc037fd626001de3629f /src/dotty/tools/dotc/transform/LambdaLift.scala | |
parent | 7bc7c9ba5e04b9a17ed7d548f3ea8caf7bd8c4a7 (diff) | |
download | dotty-78aa68223cc0869d2b103805ccc85d6bdf54a4e7.tar.gz dotty-78aa68223cc0869d2b103805ccc85d6bdf54a4e7.tar.bz2 dotty-78aa68223cc0869d2b103805ccc85d6bdf54a4e7.zip |
Revert "Fix #580: use isContainedIn to support cases where the enclosing class is also the top-level class"
This reverts commit 6898d2c296326779d373ef0e0b84e4451550120a.
Diffstat (limited to 'src/dotty/tools/dotc/transform/LambdaLift.scala')
-rw-r--r-- | src/dotty/tools/dotc/transform/LambdaLift.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/LambdaLift.scala b/src/dotty/tools/dotc/transform/LambdaLift.scala index 0cbbb769f..42c6e85af 100644 --- a/src/dotty/tools/dotc/transform/LambdaLift.scala +++ b/src/dotty/tools/dotc/transform/LambdaLift.scala @@ -292,7 +292,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform val encClass = local.enclosingClass val topClass = local.topLevelClass // member of a static object - if (encClass.isStatic && encClass.isContainedIn(topClass)) { + if (encClass.isStatic && encClass.isProperlyContainedIn(topClass)) { // though the second condition seems weird, it's not true for symbols which are defined in some // weird combinations of super calls. (encClass, EmptyFlags) |