Add substitution concept into JetType

In most cases it's just a map { Parameter_i => Argument_i }
Will be used when loading Raw types from Java.

Also add ClassDescriptor.getMemberScope by substitution.
This commit is contained in:
Denis Zharkov
2015-07-22 18:40:13 +03:00
parent 557450677f
commit 37420527f2
12 changed files with 87 additions and 2 deletions
@@ -271,6 +271,8 @@ class LazyJavaTypeResolver(
return (descriptor as ClassDescriptor).getMemberScope(getArguments())
}
override fun computeCustomSubstitution(): TypeSubstitution? = null
private val nullable = c.storageManager.createLazyValue l@ {
when (attr.flexibility) {
FLEXIBLE_LOWER_BOUND -> return@l false