Covered case when variable of our type is multi-declaration entry

This commit is contained in:
Valentin Kipyatkov
2016-09-05 16:04:49 +03:00
parent 7b907e6518
commit 904017eaff
18 changed files with 104 additions and 2 deletions
@@ -549,7 +549,7 @@ class ExpressionsOfTypeProcessor(
*/
private fun processSuspiciousDeclaration(declaration: KtDeclaration) {
if (declaration is KtDestructuringDeclaration) {
//TODO: process entries!
declaration.entries.forEach { processSuspiciousDeclaration(it) }
}
else {
if (!isImplicitlyTyped(declaration)) return