From 916755907a7adacd6ecdbdb78d9d1919397fd3cd Mon Sep 17 00:00:00 2001 From: Nikolai Pachkov Date: Thu, 28 Dec 2023 15:12:05 +0100 Subject: [PATCH] Revert "KTL-1313 feat: add support for explicit backing fields" This reverts commit 4813304544e9e1ab185d2039b6645ed131378a71. --- .../kotlin/component/KotlinEnvironment.kt | 1 - .../compiler/server/KotlinFeatureSince170.kt | 24 ------------------- 2 files changed, 25 deletions(-) diff --git a/common/src/main/kotlin/component/KotlinEnvironment.kt b/common/src/main/kotlin/component/KotlinEnvironment.kt index e1a297030..edd57f459 100644 --- a/common/src/main/kotlin/component/KotlinEnvironment.kt +++ b/common/src/main/kotlin/component/KotlinEnvironment.kt @@ -42,7 +42,6 @@ class KotlinEnvironment( "-opt-in=kotlin.contracts.ExperimentalContracts", "-opt-in=kotlin.experimental.ExperimentalTypeInference", "-Xcontext-receivers", - "-XXLanguage:+ExplicitBackingFields" ) } diff --git a/src/test/kotlin/com/compiler/server/KotlinFeatureSince170.kt b/src/test/kotlin/com/compiler/server/KotlinFeatureSince170.kt index 12d50a8b9..875e374cd 100644 --- a/src/test/kotlin/com/compiler/server/KotlinFeatureSince170.kt +++ b/src/test/kotlin/com/compiler/server/KotlinFeatureSince170.kt @@ -94,28 +94,4 @@ class KotlinFeatureSince170 : BaseExecutorTest() { contains = "second quarter" ) } - - @Test - fun `Experimental support for explicit backing fields`() { - run( - code = """ - fun main() { - class Test { - val names: List - field: MutableList = mutableListOf() - - fun doThing() { - names.add("Hello!") - } - } - - val test = Test() - test.doThing() - - println(test.names) - } - """.trimIndent(), - contains = "[Hello!]" - ) - } } \ No newline at end of file