Make JetTypeMapper aware of SAM constructor arguments
This obsoletes 'replaceName' workaround that was present in ClosureCodegen but missing in other crucial call sites of mapSignature, e.g. generation of EnclosingMethod info #KT-6691 Fixed
This commit is contained in:
-7
@@ -58,13 +58,6 @@ public class JvmMethodSignature {
|
||||
return asmMethod.getReturnType();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public JvmMethodSignature replaceName(@NotNull String newName) {
|
||||
return newName.equals(asmMethod.getName()) ?
|
||||
this :
|
||||
new JvmMethodSignature(new Method(newName, asmMethod.getDescriptor()), genericsSignature, valueParameters);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
||||
Reference in New Issue
Block a user