LazyThreadSafetyMode.NONE is not safe to use in multithreading environment (EA-76205)

This commit is contained in:
Nikolay Krasko
2015-11-23 16:49:34 +03:00
parent 606a34283d
commit c9e1671572
@@ -27,7 +27,7 @@ class StarProjectionImpl(
override fun getProjectionKind() = Variance.OUT_VARIANCE
// No synchronization here: there's no problem in accidentally computing this twice
private val _type: KotlinType by lazy(LazyThreadSafetyMode.NONE) {
private val _type: KotlinType by lazy(LazyThreadSafetyMode.PUBLICATION) {
typeParameter.starProjectionType()
}