Fix delegated function body generation

This commit is contained in:
Dmitry Petrov
2018-06-27 16:49:24 +03:00
parent 71c5bf0b97
commit b1d0a5e807
2 changed files with 32 additions and 45 deletions
@@ -279,7 +279,7 @@ class ClassGenerator(
else {
val substitutor =
TypeSubstitutor.create(
overridden.original.typeParameters.associate {
overridden.typeParameters.associate {
val delegatedDefaultType = delegated.typeParameters[it.index].defaultType
it.typeConstructor to TypeProjectionImpl(delegatedDefaultType)
}