IR: put resolution of unbound type parameter symbols behind a language version flag
This commit is contained in:
+3
-1
@@ -53,7 +53,6 @@ class ExternalDependenciesGenerator(
|
|||||||
}
|
}
|
||||||
} while (unbound.isNotEmpty())
|
} while (unbound.isNotEmpty())
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private val SymbolTable.allUnbound: List<IrSymbol>
|
private val SymbolTable.allUnbound: List<IrSymbol>
|
||||||
get() {
|
get() {
|
||||||
@@ -65,9 +64,12 @@ private val SymbolTable.allUnbound: List<IrSymbol>
|
|||||||
r.addAll(unboundSimpleFunctions)
|
r.addAll(unboundSimpleFunctions)
|
||||||
r.addAll(unboundProperties)
|
r.addAll(unboundProperties)
|
||||||
r.addAll(unboundTypeAliases)
|
r.addAll(unboundTypeAliases)
|
||||||
|
if (!languageVersionSettings.supportsFeature(LanguageFeature.NewInference)) {
|
||||||
r.addAll(unboundTypeParameters)
|
r.addAll(unboundTypeParameters)
|
||||||
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun List<IrProvider>.getDeclaration(symbol: IrSymbol): IrDeclaration =
|
fun List<IrProvider>.getDeclaration(symbol: IrSymbol): IrDeclaration =
|
||||||
firstNotNullResult { provider ->
|
firstNotNullResult { provider ->
|
||||||
|
|||||||
Reference in New Issue
Block a user