Polishing.

Use ResolvableType for type assignability check when resolving Type from a KType.

See #2324.
This commit is contained in:
Mark Paluch
2021-03-12 16:56:10 +01:00
parent 524a33af7c
commit 08cb9e848d
3 changed files with 16 additions and 5 deletions

View File

@@ -72,4 +72,12 @@ class KotlinCopyMethodUnitTests {
assertThat(copyMethod.shouldUsePublicCopyMethod(mappingContext.getRequiredPersistentEntity(DataClassKt.class)))
.isTrue();
}
@Test // #2324
void shouldDetermineCopyMethodForParametrizedType() {
Optional<KotlinCopyMethod> copyMethod = KotlinCopyMethod.findCopyMethod(ImmutableKotlinPerson.class);
assertThat(copyMethod).isPresent();
}
}