Perform resolve of constructor parameters during partial constructor resove

#KT-13354 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2016-11-09 03:36:32 +03:00
parent 41bd276814
commit 6656bf835f
2 changed files with 2 additions and 4 deletions
@@ -530,6 +530,7 @@ class ResolveElementCache(
val constructorDescriptor = classDescriptor.unsubstitutedPrimaryConstructor
?: error("Can't get primary constructor for descriptor '$classDescriptor' " +
"in from class '${klass.getElementTextWithContext()}'")
ForceResolveUtil.forceResolveAllContents(constructorDescriptor)
val primaryConstructor = klass.getPrimaryConstructor()
if (primaryConstructor != null) {