diff --git a/platform/testFramework/src/com/intellij/openapi/util/registry/RegistryTestUtil.kt b/platform/testFramework/src/com/intellij/openapi/util/registry/RegistryTestUtil.kt index f6d490a8ef05..ed2ed23c9244 100644 --- a/platform/testFramework/src/com/intellij/openapi/util/registry/RegistryTestUtil.kt +++ b/platform/testFramework/src/com/intellij/openapi/util/registry/RegistryTestUtil.kt @@ -14,7 +14,7 @@ inline fun RegistryValue.withValue(tempValue: Boolean, crossinline block: () -> } inline fun RegistryValue.withValue(tempValue: String, crossinline block: () -> Unit) { - val currentValue = asBoolean() + val currentValue = asString() try { setValue(tempValue) block()