Create different KotlinBuiltIns for modules with different language feature settings.
For sdkModule we create builtIns with default language feature settings. Also when we create sdkModuleResolverProvider we create builtIns cache. Then for every other module we get builtIns cached by value isAdditionalBuiltInsFeatureSupported.
This commit is contained in:
committed by
Dmitry Jemerov
parent
7c0cdf90cf
commit
e38ca44595
@@ -44,7 +44,10 @@ class JvmBuiltIns @JvmOverloads constructor(
|
||||
JvmBuiltInsSettings(
|
||||
builtInsModule, storageManager,
|
||||
{ ownerModuleDescriptor.sure { "JvmBuiltins has not been initialized properly" } },
|
||||
{ isAdditionalBuiltInsFeatureSupported }
|
||||
{
|
||||
ownerModuleDescriptor.sure { "JvmBuiltins has not been initialized properly" }
|
||||
isAdditionalBuiltInsFeatureSupported
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user