Omit unnecessary generic type from standard constructor call (#1041)

These were redundant. Was `return Foo<T>(...)` and is now `return Foo(...)`
This commit is contained in:
Zac Sweers
2019-12-05 22:37:38 +01:00
committed by GitHub
parent 14cb9e4bbb
commit c3a1ba711c

View File

@@ -411,8 +411,8 @@ internal class AdapterGenerator(
localConstructorProperty localConstructorProperty
) )
} else { } else {
// Standard constructor call // Standard constructor call. Can omit generics as they're inferred
result.addCode("«%L%T(", returnOrResultAssignment, originalTypeName) result.addCode("«%L%T(", returnOrResultAssignment, originalTypeName.rawType())
} }
for (input in components.filterIsInstance<ParameterComponent>()) { for (input in components.filterIsInstance<ParameterComponent>()) {