Skip to content

Commit f018c38

Browse files
committed
Fix enumeration of all members of the class
used a wrong member function inside, led to errors similar to: java.lang.ClassFormatError: Duplicate method name&signature in class file dotty/tools/dotc/core/Types$WildcardType
1 parent 1847038 commit f018c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
784784
def decls: List[Symbol] = tp.decls.map(_.symbol).toList
785785

786786
def members: List[Symbol] =
787-
tp.memberDenots(takeAllFilter, (name, buf) => buf ++= member(name).alternatives).map(_.symbol).toList
787+
tp.memberDenots(takeAllFilter, (name, buf) => buf ++= tp.member(name).alternatives).map(_.symbol).toList
788788

789789
def typeSymbol: Symbol = tp.widenDealias.typeSymbol
790790

0 commit comments

Comments
 (0)