mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5133d38a7a
commit
aa4e912f62
-1
@@ -1,7 +1,6 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-ReferencesToSyntheticJavaProperties
|
||||
// PROBLEM: none
|
||||
// WITH_STDLIB
|
||||
// LANGUAGE_VERSION: 1.9
|
||||
import java.io.File
|
||||
|
||||
fun foo(file: File) {
|
||||
|
||||
-1
@@ -1,6 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
// PROBLEM: none
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
import kotlin.reflect.KFunction
|
||||
|
||||
fun main() {
|
||||
|
||||
+1
-1
@@ -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(){
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
+1
-1
@@ -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::<caret>getFoo)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
doSth(Foo::<caret>getFoo)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
doSth(Foo::foo)
|
||||
|
||||
-1
@@ -1,6 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
fun main() {
|
||||
suppressUnused(Foo::<caret>getFoo)
|
||||
}
|
||||
|
||||
-1
@@ -1,6 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
fun main() {
|
||||
suppressUnused(Foo::foo)
|
||||
}
|
||||
|
||||
-1
@@ -1,6 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
// PROBLEM: none
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
fun main() {
|
||||
suppressUnused(Foo::<caret>isFoo)
|
||||
}
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
// FIX: Use property access syntax
|
||||
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
// FIX: Use property access syntax
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
val j = J()
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
val j = J()
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
doSth(Foo::<caret>`getFoo`)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
doSth(Foo::foo)
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
call(Boo<Int>::<caret>getBoo)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// FIX: Use property access syntax
|
||||
// LANGUAGE_VERSION: 2.1
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
||||
|
||||
fun main() {
|
||||
call(Boo<Int>::boo)
|
||||
|
||||
Reference in New Issue
Block a user