Browse Source
We now resolve only the raw class when checking if a primary constructor argument is assignable to method parameters of the synthetic copy method. Previously we used ResolvableType's assignability check which considered generic type arguments. As the type resolution between the KType and copy method type is not symmetric, the check only succeeded in cases where both types could be resolved to the same type/assignable type. Using projections or Any caused asymmetric resolution and therefor the assignability check returned non-assignable. Closes #2336.pull/2339/head
3 changed files with 14 additions and 5 deletions
Loading…
Reference in new issue