File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
416
416
def isLabel : Boolean = sym is Flags .Label
417
417
def hasPackageFlag : Boolean = sym is Flags .Package
418
418
def isImplClass : Boolean = sym is Flags .ImplClass
419
- def isInterface : Boolean = (sym is Flags .JavaInterface ) || (sym is Flags .PureInterface )
419
+ def isInterface : Boolean = (sym is Flags .PureInterface ) || (sym is Flags .Trait )
420
420
def hasGetter : Boolean = false // used only for generaration of beaninfo todo: implement
421
421
def isGetter : Boolean = toDenot(sym).isGetter
422
422
def isSetter : Boolean = toDenot(sym).isSetter
Original file line number Diff line number Diff line change @@ -73,12 +73,7 @@ class Mixin extends MiniPhaseTransform with SymTransformer { thisTransform =>
73
73
override def transformSym (sym : SymDenotation )(implicit ctx : Context ): SymDenotation =
74
74
if (sym.is(Accessor , butNot = Deferred ) && sym.owner.is(Trait ))
75
75
sym.copySymDenotation(initFlags = sym.flags | Deferred )
76
- else if (sym.is(Trait , JavaDefined )) { // fixup scala2 traits to become interfaces
77
- val info = sym.asClass.classInfo
78
- val parents : List [TypeRef ] = defn.ObjectType .asInstanceOf [TypeRef ] :: info.parents // new superClass is object
79
- val newInfo = info.derivedClassInfo(classParents = parents)
80
- sym.copySymDenotation(initFlags = sym.flags | JavaInterface , info = newInfo)
81
- } else
76
+ else
82
77
sym
83
78
84
79
private def initializer (sym : Symbol )(implicit ctx : Context ): TermSymbol = {
You can’t perform that action at this time.
0 commit comments