Polishing.
Use ResolvableType for type assignability check when resolving Type from a KType. See #2324.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user