Skip to content

Commit

Permalink
CR change var to interface type
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jan 8, 2025
1 parent 9717358 commit 22e6649
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.enso.compiler.MetadataInteropHelpers;
import org.enso.compiler.common.BuildScopeFromModuleAlgorithm;
import org.enso.compiler.context.InlineContext;
Expand Down Expand Up @@ -222,7 +223,7 @@ private void registerFieldGetters(
StaticModuleScope.Builder scope,
TypeScopeReference typeScope,
Definition.Type typeDefinition) {
var fieldTypes = new HashMap<String, List<TypeRepresentation>>();
Map<String, List<TypeRepresentation>> fieldTypes = new HashMap<>();
for (var constructorDef : ScalaConversions.asJava(typeDefinition.members())) {
for (var argumentDef : ScalaConversions.asJava(constructorDef.arguments())) {
String fieldName = argumentDef.name().name();
Expand Down

0 comments on commit 22e6649

Please sign in to comment.