FIR IDE: fix ReadOnlyWeakRef error message
This commit is contained in:
+2
-2
@@ -15,9 +15,9 @@ class ReadOnlyWeakRef<V : Any>(value: V, val validityOwner: ValidityOwner) {
|
|||||||
@Suppress("NOTHING_TO_INLINE")
|
@Suppress("NOTHING_TO_INLINE")
|
||||||
inline operator fun getValue(thisRef: Any, property: KProperty<*>): V =
|
inline operator fun getValue(thisRef: Any, property: KProperty<*>): V =
|
||||||
weakRef.get() ?: if (validityOwner.isValid()) {
|
weakRef.get() ?: if (validityOwner.isValid()) {
|
||||||
error("Cone type was garbage collected while analysis session is still valid")
|
error("Value of $property was garbage collected while analysis session is still valid")
|
||||||
} else {
|
} else {
|
||||||
error("Accessing the invalid coneType")
|
error("Accessing the invalid value of $property")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user