diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-05-04 22:03:22 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-05-04 22:03:22 +0200 |
commit | c4dba2420be56e628e37732a3369533951cc7ef1 (patch) | |
tree | 531b4f22bc8be035a765c51d9b0cd1417dfd5aef /src/dotty/tools/backend | |
parent | 7c8693b62bfa73a47eb781bf0e372f68acc0db52 (diff) | |
parent | 349c436348407b0e862e3feb65c959275549d86b (diff) | |
download | dotty-c4dba2420be56e628e37732a3369533951cc7ef1.tar.gz dotty-c4dba2420be56e628e37732a3369533951cc7ef1.tar.bz2 dotty-c4dba2420be56e628e37732a3369533951cc7ef1.zip |
Merge pull request #509 from dotty-staging/add/expandSAMs
Expand SAM closures to anonymous classes if needed
Diffstat (limited to 'src/dotty/tools/backend')
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 7313070e0..dc6752460 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -647,7 +647,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ } def parentSymbols: List[Symbol] = toDenot(sym).info.parents.map(_.typeSymbol) def superClass: Symbol = { - val t = toDenot(sym).superClass + val t = toDenot(sym).asClass.superClass if (t.exists) t else if (sym is Flags.ModuleClass) { // workaround #371 @@ -712,7 +712,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ * All interfaces implemented by a class, except for those inherited through the superclass. * */ - def superInterfaces: List[Symbol] = decorateSymbol(sym).superInterfaces + def superInterfaces: List[Symbol] = decorateSymbol(sym).directlyInheritedTraits /** * True for module classes of package level objects. The backend will generate a mirror class for |