From aa4e912f62c3b74751e89df4849e4215313cc651 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Mon, 17 Jun 2024 14:55:56 +0200 Subject: [PATCH] Prefer -XXLanguage over LANGUAGE_VERSION in testData usePropertyAccessSyntax/callableReferenceExpressions This commit fixes tests that get broken after https://jetbrains.team/p/kt/reviews/16557/timeline GitOrigin-RevId: 28c19f8ef408c26da61a147631eaa904b2b56ae0 --- .../dontReplaceCallableReferenceGetterIn1dot9.kt | 1 - .../dontReplaceGetterNotBuiltInFunctionType.kt | 1 - .../dontReplaceIfJavaClassHasPublicFieldWithSameName.kt | 2 +- .../getCallableReferenceFunction.kt | 2 +- .../getCallableReferenceFunction.kt.after | 2 +- .../getCallableReferenceFunction0.kt | 2 +- .../getCallableReferenceFunction0.kt.after | 2 +- .../getCallableReferenceFunction1.kt | 2 +- .../getCallableReferenceFunction1.kt.after | 2 +- .../getCallableReferenceOrdinary.kt | 2 +- .../getCallableReferenceOrdinary.kt.after | 2 +- .../referenceGetterFunctionalInterface.kt | 1 - .../referenceGetterFunctionalInterface.kt.after | 1 - .../callableReferenceExpressions/referenceIsGetter.kt | 1 - .../replaceCallableReferenceCalledOnConstructor.kt | 1 - .../replaceCallableReferenceCalledOnConstructor.kt.after | 1 - .../replaceCallableReferenceGetterInsideSetter.kt | 2 +- .../replaceCallableReferenceGetterInsideSetter.kt.after | 2 +- .../callableReferenceExpressions/replaceWithBackticks.kt | 2 +- .../callableReferenceExpressions/replaceWithBackticks.kt.after | 2 +- .../callableReferenceExpressions/samInterface.kt | 2 +- .../callableReferenceExpressions/samInterface.kt.after | 2 +- .../callableReferenceExpressions/typedInterface.kt | 2 +- .../callableReferenceExpressions/typedInterface.kt.after | 2 +- 24 files changed, 17 insertions(+), 24 deletions(-) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceCallableReferenceGetterIn1dot9.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceCallableReferenceGetterIn1dot9.kt index 1b47956fe89f..7efd713cca7b 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceCallableReferenceGetterIn1dot9.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceCallableReferenceGetterIn1dot9.kt @@ -1,7 +1,6 @@ // COMPILER_ARGUMENTS: -XXLanguage:-ReferencesToSyntheticJavaProperties // PROBLEM: none // WITH_STDLIB -// LANGUAGE_VERSION: 1.9 import java.io.File fun foo(file: File) { diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceGetterNotBuiltInFunctionType.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceGetterNotBuiltInFunctionType.kt index 1a93d7dcf3b2..a3c7c454fedf 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceGetterNotBuiltInFunctionType.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceGetterNotBuiltInFunctionType.kt @@ -1,6 +1,5 @@ // COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // PROBLEM: none -// LANGUAGE_VERSION: 2.1 import kotlin.reflect.KFunction fun main() { diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceIfJavaClassHasPublicFieldWithSameName.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceIfJavaClassHasPublicFieldWithSameName.kt index 7147d85021b6..2322ae931ffb 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceIfJavaClassHasPublicFieldWithSameName.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/dontReplaceIfJavaClassHasPublicFieldWithSameName.kt @@ -1,5 +1,5 @@ // PROBLEM: none -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // IGNORE_K1 // For K1, it offers replacement but shouldn't. It's a bug, see KTIJ-21051 fun test(){ diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt index 66ccc93d481e..94ab3d334ad8 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt @@ -1,5 +1,5 @@ // PROBLEM: "Use of getter method instead of property access syntax" -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties import java.util.function.Function fun main() { diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt.after index 5715fbc4cf1d..7d09e62d1cc6 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction.kt.after @@ -1,5 +1,5 @@ // PROBLEM: "Use of getter method instead of property access syntax" -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties import java.util.function.Function fun main() { diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt index 87298e83a7e9..323a7fe859c1 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt @@ -1,5 +1,5 @@ // PROBLEM: "Use of getter method instead of property access syntax" -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { val myFoo = Foo() diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt.after index 5a97b00cc72d..521f9061deef 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction0.kt.after @@ -1,5 +1,5 @@ // PROBLEM: "Use of getter method instead of property access syntax" -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { val myFoo = Foo() diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt index 5708bb04d649..16fdcc67eb67 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt @@ -1,5 +1,5 @@ // PROBLEM: "Use of getter method instead of property access syntax" -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { funFunction1(Foo::getFoo) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt.after index dafdc3b14bca..c2ee28f55141 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceFunction1.kt.after @@ -1,5 +1,5 @@ // PROBLEM: "Use of getter method instead of property access syntax" -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { funFunction1(Foo::foo) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt index 386600659f2f..bc465b3a3e9a 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { doSth(Foo::getFoo) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt.after index 05df9c2c0d8e..bf9376cb48c7 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/getCallableReferenceOrdinary.kt.after @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { doSth(Foo::foo) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt index f7be546b39bc..1d88bc2373a8 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt @@ -1,6 +1,5 @@ // COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 fun main() { suppressUnused(Foo::getFoo) } diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt.after index 346331db13a4..fde259ca1fc2 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceGetterFunctionalInterface.kt.after @@ -1,6 +1,5 @@ // COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 fun main() { suppressUnused(Foo::foo) } diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceIsGetter.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceIsGetter.kt index adbc35222a0e..e1c159a8399d 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceIsGetter.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/referenceIsGetter.kt @@ -1,6 +1,5 @@ // COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // PROBLEM: none -// LANGUAGE_VERSION: 2.1 fun main() { suppressUnused(Foo::isFoo) } diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt index a7be5a2be929..36333070b658 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt @@ -1,4 +1,3 @@ -// LANGUAGE_VERSION: 2.1 // COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // FIX: Use property access syntax diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt.after index d3d9112fb400..8da578a7ef96 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceCalledOnConstructor.kt.after @@ -1,4 +1,3 @@ -// LANGUAGE_VERSION: 2.1 // COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties // FIX: Use property access syntax diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt index 0933815673dc..ec5399c395a7 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { val j = J() diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt.after index e83860d9544e..b24ad7968f8c 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceCallableReferenceGetterInsideSetter.kt.after @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { val j = J() diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt index c34dfb0a7f17..a6e1d975e072 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { doSth(Foo::`getFoo`) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt.after index 05df9c2c0d8e..bf9376cb48c7 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/replaceWithBackticks.kt.after @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { doSth(Foo::foo) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt index 8f6ca91f8978..44d3fc63e9a2 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun test(t: Thread) { take { t.name } // works diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt.after index 38d5daf2e1d1..1e9fbc4271cb 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/samInterface.kt.after @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun test(t: Thread) { take { t.name } // works diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt index 082842826e12..c03351d5541a 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { call(Boo::getBoo) diff --git a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt.after b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt.after index 03500e4bd551..a05ebbb23253 100644 --- a/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/callableReferenceExpressions/typedInterface.kt.after @@ -1,5 +1,5 @@ // FIX: Use property access syntax -// LANGUAGE_VERSION: 2.1 +// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties fun main() { call(Boo::boo)