diff --git a/multiplatform-settings/src/commonTest/kotlin/com/russhwolf/settings/SettingsTest.kt b/multiplatform-settings/src/commonTest/kotlin/com/russhwolf/settings/SettingsTest.kt index 6c1a9f55..3e44bb5e 100644 --- a/multiplatform-settings/src/commonTest/kotlin/com/russhwolf/settings/SettingsTest.kt +++ b/multiplatform-settings/src/commonTest/kotlin/com/russhwolf/settings/SettingsTest.kt @@ -496,6 +496,14 @@ class SettingsTest { assertEquals(null, a) } + @Test + @Suppress("UNUSED_VALUE", "ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") + fun defaultKey() { + var a by settings.string() + a = "value" + assertEquals("value", settings.getString("a")) + } + @Test fun delegateReuseTest() { // Is this a reasonable use-case? Might as well protect it for now. That way if we break it later it'll be on