K2: fix implementation of EXTENSION_PROPERTY_MUST_HAVE_ACCESSORS_OR_BE_ABSTRACT

This commit fixes
`FirCompileKotlinAgainstCustomBinariesTest.testUnreachableExtensionVarPropertyDeclaration`.
This commit is contained in:
Mikhail Glukhikh
2023-07-27 20:35:27 +02:00
committed by Space Team
parent 54c7466074
commit 0abf17201f
3 changed files with 7 additions and 5 deletions
@@ -663,8 +663,7 @@ abstract class AbstractCompileKotlinAgainstCustomBinariesTest : AbstractKotlinCo
compileKotlin("main.kt", tmpdir, listOf(library), additionalOptions = features)
}
// Fixed in the LV2.0 branch.
fun testUnreachableExtensionVarPropertyDeclaration() = muteForK2 {
fun testUnreachableExtensionVarPropertyDeclaration() {
val (output, exitCode) = compileKotlin("source.kt", tmpdir, expectedFileName = null)
assertEquals("Output:\n$output", ExitCode.COMPILATION_ERROR, exitCode)
}