Additional checks for type alias constructors.

This commit is contained in:
Dmitry Petrov
2016-09-15 18:20:39 +03:00
committed by Dmitry Petrov
parent 796d11c860
commit dac9d8b845
10 changed files with 258 additions and 5 deletions
@@ -264,7 +264,7 @@ private fun ResolutionScope.getContributedFunctionsAndConstructors(name: Name, l
val classifier = getContributedClassifier(name, location)
return getContributedFunctions(name, location) +
(getClassWithConstructors(classifier)?.constructors?.filter { it.dispatchReceiverParameter == null } ?: emptyList()) +
(classifier?.getTypeAliasConstructors() ?: emptyList())
(classifier?.getTypeAliasConstructors()?.filter { it.dispatchReceiverParameter == null } ?: emptyList())
}
private fun ResolutionScope.getContributedObjectVariables(name: Name, location: LookupLocation): Collection<VariableDescriptor> {