[kotlin][tests][quickfixes] update testData

GitOrigin-RevId: 0b9dddda0be38819fad3802cdbb3c8b7fb795ebe
This commit is contained in:
Dmitry Gridin
2022-03-23 09:10:56 +00:00
committed by intellij-monorepo-bot
parent 5121311f9f
commit bd51e7a671
124 changed files with 530 additions and 64 deletions
@@ -1,5 +1,9 @@
// "Add non-null asserted (!!) call" "true"
// ACTION: Cast expression 'a' to 'Foo'
// ACTION: Add non-null asserted (!!) call
// ACTION: Convert to run
// ACTION: Convert to with
// ACTION: Remove braces from 'if' statement
// ACTION: Replace 'if' expression with safe access expression
interface Foo {
fun bar()
@@ -1,5 +1,9 @@
// "Add non-null asserted (!!) call" "true"
// ACTION: Cast expression 'a' to 'Foo'
// ACTION: Add non-null asserted (!!) call
// ACTION: Convert to run
// ACTION: Convert to with
// ACTION: Remove braces from 'if' statement
// ACTION: Replace 'if' expression with safe access expression
interface Foo {
fun bar()
@@ -1,9 +1,15 @@
// "Import" "true"
// WITH_STDLIB
// ACTION: Compiler warning 'UNUSED_EXPRESSION' options
// ACTION: Create annotation 'FunctionReference'
// ACTION: Create class 'FunctionReference'
// ACTION: Create enum 'FunctionReference'
// ACTION: Create interface 'FunctionReference'
// ACTION: Create local variable 'FunctionReference'
// ACTION: Create object 'FunctionReference'
// ACTION: Create parameter 'FunctionReference'
// ACTION: Create property 'FunctionReference'
// ACTION: Import
// ACTION: Introduce local variable
// ACTION: Rename reference
@@ -1,9 +1,15 @@
// "Import" "true"
// WITH_STDLIB
// ACTION: Compiler warning 'UNUSED_EXPRESSION' options
// ACTION: Create annotation 'FunctionReference'
// ACTION: Create class 'FunctionReference'
// ACTION: Create enum 'FunctionReference'
// ACTION: Create interface 'FunctionReference'
// ACTION: Create local variable 'FunctionReference'
// ACTION: Create object 'FunctionReference'
// ACTION: Create parameter 'FunctionReference'
// ACTION: Create property 'FunctionReference'
// ACTION: Import
// ACTION: Introduce local variable
// ACTION: Rename reference
@@ -1,6 +1,6 @@
// "Change to 'return@forEach'" "true"
// ACTION: Change to 'return@foo'
// ACTION: Introduce local variable
// ACTION: Change to 'return@forEach'
// ERROR: The integer literal does not conform to the expected type Unit
// WITH_STDLIB
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
@@ -1,6 +1,6 @@
// "Change to 'return@forEach'" "true"
// ACTION: Change to 'return@foo'
// ACTION: Introduce local variable
// ACTION: Change to 'return@forEach'
// ERROR: The integer literal does not conform to the expected type Unit
// WITH_STDLIB
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
@@ -1,6 +1,6 @@
// "Change to 'return@foo'" "true"
// ACTION: Change to 'return@foo'
// ACTION: Change to 'return@forEach'
// ACTION: Introduce local variable
// WITH_STDLIB
fun foo(f:()->Int){}
@@ -1,6 +1,6 @@
// "Change to 'return@foo'" "true"
// ACTION: Change to 'return@foo'
// ACTION: Change to 'return@forEach'
// ACTION: Introduce local variable
// WITH_STDLIB
fun foo(f:()->Int){}
@@ -1,4 +1,5 @@
// "Create class 'Unknown'" "true"
// ACTION: Create class 'Unknown'
// ACTION: Create interface 'Unknown'
// ACTION: Create type parameter 'Unknown' in class 'A'
// DISABLE-ERRORS
@@ -1,4 +1,5 @@
// "Create class 'Unknown'" "true"
// ACTION: Create class 'Unknown'
// ACTION: Create interface 'Unknown'
// ACTION: Create type parameter 'Unknown' in class 'A'
// DISABLE-ERRORS
@@ -1,4 +1,5 @@
// "Create class 'Unknown'" "true"
// ACTION: Create class 'Unknown'
// ACTION: Create interface 'Unknown'
// ACTION: Create type parameter 'Unknown' in class 'A'
// DISABLE-ERRORS
@@ -1,4 +1,5 @@
// "Create class 'Unknown'" "true"
// ACTION: Create class 'Unknown'
// ACTION: Create interface 'Unknown'
// ACTION: Create type parameter 'Unknown' in class 'A'
// DISABLE-ERRORS
@@ -1,5 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Create parameter 'foo'
// ACTION: Create local variable 'foo'
// ACTION: Create property 'foo'
// ACTION: Create property 'foo' as constructor parameter
// ACTION: Rename reference
class A {
val t: Int get() {
@@ -1,5 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Create parameter 'foo'
// ACTION: Create local variable 'foo'
// ACTION: Create property 'foo'
// ACTION: Create property 'foo' as constructor parameter
// ACTION: Rename reference
class A {
val t: Int get() {
@@ -1,5 +1,10 @@
// "Create local variable 'foo'" "true"
// ACTION: Create parameter 'foo'
// ACTION: Convert property getter to initializer
// ACTION: Convert to block body
// ACTION: Create local variable 'foo'
// ACTION: Create property 'foo'
// ACTION: Create property 'foo' as constructor parameter
// ACTION: Rename reference
class A {
val t: Int get() = <caret>foo
@@ -1,5 +1,10 @@
// "Create local variable 'foo'" "true"
// ACTION: Create parameter 'foo'
// ACTION: Convert property getter to initializer
// ACTION: Convert to block body
// ACTION: Create local variable 'foo'
// ACTION: Create property 'foo'
// ACTION: Create property 'foo' as constructor parameter
// ACTION: Rename reference
class A {
val t: Int get() {
@@ -1,8 +1,7 @@
// "Create local variable 'abc'" "true"
// ACTION: Add '@JvmOverloads' annotation to function 'testMethod'
// ACTION: Create local variable 'abc'
// ACTION: Create parameter 'abc'
// ACTION: Create property 'abc'
// ACTION: Create property 'abc' as constructor parameter
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// WITH_STDLIB
@@ -1,8 +1,7 @@
// "Create local variable 'abc'" "true"
// ACTION: Add '@JvmOverloads' annotation to function 'testMethod'
// ACTION: Create local variable 'abc'
// ACTION: Create parameter 'abc'
// ACTION: Create property 'abc'
// ACTION: Create property 'abc' as constructor parameter
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// WITH_STDLIB
@@ -1,5 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
fun test(): Int {
return <caret>foo
@@ -1,5 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
fun test(): Int {
val foo = 0
@@ -1,4 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to block body
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
fun test(): Int = <caret>foo
@@ -1,5 +1,9 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to block body
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
fun test(): Int {
val foo = 0
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: () -> Int = { <caret>foo }
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: () -> Int = {
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: (Int, Int) -> Int = { a, b -> <caret>foo }
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: (Int, Int) -> Int = { a, b ->
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to single-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: () -> Int = {
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to single-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: () -> Int = {
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to single-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: (Int, Int) -> Int = { a, b ->
@@ -1,5 +1,11 @@
// "Create local variable 'foo'" "true"
// ACTION: Convert to single-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: (Int, Int) -> Int = { a, b ->
@@ -1,5 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
package foo
@@ -1,5 +1,8 @@
// "Create local variable 'foo'" "true"
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
package foo
@@ -1,5 +1,10 @@
// "Create local variable 'foo'" "true"
// ACTION: Create local variable 'foo'
// ACTION: Create object 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
// ACTION: Split property declaration
fun test() {
val u: Unit = <caret>foo
@@ -1,5 +1,10 @@
// "Create local variable 'foo'" "true"
// ACTION: Create local variable 'foo'
// ACTION: Create object 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Rename reference
// ACTION: Split property declaration
fun test() {
val foo = Unit
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: () -> Int = { <caret>foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int, foo: Int) {
val f: () -> Int = { foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: (Int) -> Int = { <caret>foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int, foo: Int) {
val f: (Int) -> Int = { foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: (Int, Int) -> Int = { a, b -> <caret>foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int, foo: Int) {
val f: (Int, Int) -> Int = { a, b -> foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create object 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
fun test(n: Int) {
val f = { a: Int, b: Int -> <caret>foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to multi-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create object 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
fun test(n: Int, foo: Any) {
val f = { a: Int, b: Int -> foo }
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to single-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int) {
val f: () -> Int = {
@@ -1,5 +1,11 @@
// "Create parameter 'foo'" "true"
// ACTION: Convert to single-line lambda
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Rename reference
// ACTION: Specify explicit lambda signature
fun test(n: Int, foo: Int) {
val f: () -> Int = {
@@ -1,5 +1,14 @@
// "Make 'foo' private" "true"
// ACTION: Add getter
// ACTION: Convert property initializer to getter
// ACTION: Convert property to function
// ACTION: Convert to lazy property
// ACTION: Introduce backing property
// ACTION: Make 'Data' public
// ACTION: Make 'foo' private
// ACTION: Move to companion object
// ACTION: Move to constructor
// ACTION: Specify type explicitly
private data class Data(val x: Int)
@@ -1,5 +1,14 @@
// "Make 'foo' private" "true"
// ACTION: Add getter
// ACTION: Convert property initializer to getter
// ACTION: Convert property to function
// ACTION: Convert to lazy property
// ACTION: Introduce backing property
// ACTION: Make 'Data' public
// ACTION: Make 'foo' private
// ACTION: Move to companion object
// ACTION: Move to constructor
// ACTION: Specify type explicitly
private data class Data(val x: Int)
@@ -1,5 +1,11 @@
// "Make 'bar' private" "true"
// ACTION: Convert member to extension
// ACTION: Convert to block body
// ACTION: Make 'Data' internal
// ACTION: Make 'Data' public
// ACTION: Make 'bar' private
// ACTION: Move to companion object
// ACTION: Specify return type explicitly
private data class Data(val x: Int)
@@ -1,5 +1,11 @@
// "Make 'bar' private" "true"
// ACTION: Convert member to extension
// ACTION: Convert to block body
// ACTION: Make 'Data' internal
// ACTION: Make 'Data' public
// ACTION: Make 'bar' private
// ACTION: Move to companion object
// ACTION: Specify return type explicitly
private data class Data(val x: Int)
@@ -1,5 +1,11 @@
// "Make 'First' private" "true"
// ACTION: Add full qualifier
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' protected
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Outer {
private open class Data(val x: Int)
@@ -1,5 +1,11 @@
// "Make 'First' private" "true"
// ACTION: Add full qualifier
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' protected
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Outer {
private open class Data(val x: Int)
@@ -1,5 +1,9 @@
// "Make 'First' private" "true"
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
private open class Data(val x: Int)
@@ -1,5 +1,9 @@
// "Make 'First' private" "true"
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
private open class Data(val x: Int)
@@ -1,5 +1,9 @@
// "Make 'First' private" "true"
// ACTION: Add import for 'Other.Data'
// ACTION: Add names to call arguments
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Other {
internal open class Data(val x: Int)
@@ -1,5 +1,9 @@
// "Make 'First' private" "true"
// ACTION: Add import for 'Other.Data'
// ACTION: Add names to call arguments
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Other {
internal open class Data(val x: Int)
@@ -1,4 +1,9 @@
// "Make 'Derived' internal" "true"
// ACTION: Add full qualifier
// ACTION: Implement interface
// ACTION: Introduce import alias
// ACTION: Make 'Derived' internal
// ACTION: Make 'Derived' private
// ACTION: Make 'Outer' public
import Outer.Base
@@ -1,4 +1,9 @@
// "Make 'Derived' internal" "true"
// ACTION: Add full qualifier
// ACTION: Implement interface
// ACTION: Introduce import alias
// ACTION: Make 'Derived' internal
// ACTION: Make 'Derived' private
// ACTION: Make 'Outer' public
import Outer.Base
@@ -1,5 +1,10 @@
// "Make 'Derived' private" "true"
// ACTION: Add full qualifier
// ACTION: Implement interface
// ACTION: Introduce import alias
// ACTION: Make 'Derived' internal
// ACTION: Make 'Derived' private
// ACTION: Make 'Outer' public
import Outer.Base
@@ -1,5 +1,10 @@
// "Make 'Derived' private" "true"
// ACTION: Add full qualifier
// ACTION: Implement interface
// ACTION: Introduce import alias
// ACTION: Make 'Derived' internal
// ACTION: Make 'Derived' private
// ACTION: Make 'Outer' public
import Outer.Base
@@ -1,5 +1,10 @@
// "Make 'User' internal" "true"
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Make 'InternalString' public
// ACTION: Make 'User' internal
// ACTION: Make 'User' private
internal open class InternalString
@@ -1,5 +1,10 @@
// "Make 'User' internal" "true"
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Make 'InternalString' public
// ACTION: Make 'User' internal
// ACTION: Make 'User' private
internal open class InternalString
@@ -1,6 +1,16 @@
// "Propagate 'PropertyTypeMarker' opt-in requirement to constructor" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move to class body
// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructor.kt'
// ACTION: Opt in for 'PropertyTypeMarker' on constructor
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer'
@RequiresOptIn
@@ -1,6 +1,16 @@
// "Propagate 'PropertyTypeMarker' opt-in requirement to constructor" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move to class body
// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructor.kt'
// ACTION: Opt in for 'PropertyTypeMarker' on constructor
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer'
@RequiresOptIn
@@ -1,7 +1,17 @@
// "Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move to class body
// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToClass.kt'
// ACTION: Opt in for 'PropertyTypeMarker' on constructor
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer'
@RequiresOptIn
annotation class PropertyTypeMarker
@@ -1,7 +1,17 @@
// "Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move to class body
// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToClass.kt'
// ACTION: Opt in for 'PropertyTypeMarker' on constructor
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer'
@RequiresOptIn
annotation class PropertyTypeMarker
@@ -1,7 +1,17 @@
// "Opt in for 'PropertyTypeMarker' on constructor" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeMarker'
// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move to class body
// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToConstructor.kt'
// ACTION: Opt in for 'PropertyTypeMarker' on constructor
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer'
@RequiresOptIn
annotation class PropertyTypeMarker
@@ -1,7 +1,17 @@
// "Opt in for 'PropertyTypeMarker' on constructor" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeMarker'
// ACTION: Add '-opt-in=PropertyTypeMarker' to module light_idea_test_case compiler arguments
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Move to class body
// ACTION: Opt in for 'PropertyTypeMarker' in containing file 'propertyInConstructorAddOptInToConstructor.kt'
// ACTION: Opt in for 'PropertyTypeMarker' on constructor
// ACTION: Opt in for 'PropertyTypeMarker' on containing class 'PropertyTypeContainer'
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to constructor
// ACTION: Propagate 'PropertyTypeMarker' opt-in requirement to containing class 'PropertyTypeContainer'
@RequiresOptIn
annotation class PropertyTypeMarker
@@ -1,7 +1,10 @@
// "Opt in for 'AliasMarker' on 'AliasMarkerUsage'" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Add '-Xopt-in=AliasMarker' to module light_idea_test_case compiler arguments
// ACTION: Add '-opt-in=AliasMarker' to module light_idea_test_case compiler arguments
// ACTION: Introduce import alias
// ACTION: Opt in for 'AliasMarker' in containing file 'typeAlias.kt'
// ACTION: Opt in for 'AliasMarker' on 'AliasMarkerUsage'
@RequiresOptIn
annotation class AliasMarker
@@ -1,7 +1,10 @@
// "Opt in for 'AliasMarker' on 'AliasMarkerUsage'" "true"
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
// WITH_STDLIB
// ACTION: Add '-Xopt-in=AliasMarker' to module light_idea_test_case compiler arguments
// ACTION: Add '-opt-in=AliasMarker' to module light_idea_test_case compiler arguments
// ACTION: Introduce import alias
// ACTION: Opt in for 'AliasMarker' in containing file 'typeAlias.kt'
// ACTION: Opt in for 'AliasMarker' on 'AliasMarkerUsage'
@RequiresOptIn
annotation class AliasMarker
@@ -1,6 +1,9 @@
// "Introduce import alias" "true"
// WITH_STDLIB
// ACTION: Add explicit type arguments
// ACTION: Convert to 'forEachIndexed'
// ACTION: Introduce import alias
// ACTION: Replace with a 'for' loop
fun foo() {
listOf("a", "b", "c").<caret>forEach { }
}
@@ -2,7 +2,10 @@ import kotlin.collections.forEach as forEach1
// "Introduce import alias" "true"
// WITH_STDLIB
// ACTION: Add explicit type arguments
// ACTION: Convert to 'forEachIndexed'
// ACTION: Introduce import alias
// ACTION: Replace with a 'for' loop
fun foo() {
listOf("a", "b", "c").<caret>forEach1 { }
}
@@ -1,6 +1,9 @@
// "Make 'Nested' internal" "true"
// ACTION: Convert parameter to receiver
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Make 'Nested' internal
// ACTION: Make 'Nested' public
// ACTION: Make 'foo' private
// ACTION: Remove parameter 'arg'
class Outer {
private class Nested
@@ -1,6 +1,9 @@
// "Make 'Nested' internal" "true"
// ACTION: Convert parameter to receiver
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Make 'Nested' internal
// ACTION: Make 'Nested' public
// ACTION: Make 'foo' private
// ACTION: Remove parameter 'arg'
class Outer {
internal class Nested
@@ -1,5 +1,9 @@
// "Make 'Nested' public" "true"
// ACTION: Convert parameter to receiver
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Make 'Nested' internal
// ACTION: Make 'Nested' public
// ACTION: Remove parameter 'arg'
class Outer {
private class Nested
@@ -1,5 +1,9 @@
// "Make 'Nested' public" "true"
// ACTION: Convert parameter to receiver
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Make 'Nested' internal
// ACTION: Make 'Nested' public
// ACTION: Remove parameter 'arg'
class Outer {
class Nested
@@ -1,5 +1,14 @@
// "Make 'Data' public" "true"
// ACTION: Add getter
// ACTION: Convert property initializer to getter
// ACTION: Convert property to function
// ACTION: Convert to lazy property
// ACTION: Introduce backing property
// ACTION: Make 'Data' public
// ACTION: Make 'foo' private
// ACTION: Move to companion object
// ACTION: Move to constructor
// ACTION: Specify type explicitly
private data class Data(val x: Int)
@@ -1,5 +1,14 @@
// "Make 'Data' public" "true"
// ACTION: Add getter
// ACTION: Convert property initializer to getter
// ACTION: Convert property to function
// ACTION: Convert to lazy property
// ACTION: Introduce backing property
// ACTION: Make 'Data' public
// ACTION: Make 'foo' private
// ACTION: Move to companion object
// ACTION: Move to constructor
// ACTION: Specify type explicitly
data class Data(val x: Int)
@@ -1,5 +1,7 @@
// "Make 'Private' protected" "true"
// ACTION: Make 'foo' private
// ACTION: Convert receiver to parameter
// ACTION: Introduce import alias
// ACTION: Make 'Private' protected
// ACTION: Make 'Private' public
class Receiver<T>
@@ -1,5 +1,7 @@
// "Make 'Private' protected" "true"
// ACTION: Make 'foo' private
// ACTION: Convert receiver to parameter
// ACTION: Introduce import alias
// ACTION: Make 'Private' protected
// ACTION: Make 'Private' public
class Receiver<T>
@@ -1,6 +1,11 @@
// "Make 'Data' internal" "true"
// ACTION: Make 'bar' private
// ACTION: Convert member to extension
// ACTION: Convert to block body
// ACTION: Make 'Data' internal
// ACTION: Make 'Data' public
// ACTION: Make 'bar' private
// ACTION: Move to companion object
// ACTION: Specify return type explicitly
private data class Data(val x: Int)
@@ -1,6 +1,11 @@
// "Make 'Data' internal" "true"
// ACTION: Make 'bar' private
// ACTION: Convert member to extension
// ACTION: Convert to block body
// ACTION: Make 'Data' internal
// ACTION: Make 'Data' public
// ACTION: Make 'bar' private
// ACTION: Move to companion object
// ACTION: Specify return type explicitly
internal data class Data(val x: Int)
@@ -1,6 +1,11 @@
// "Make 'Data' protected" "true"
// ACTION: Make 'First' private
// ACTION: Add full qualifier
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' protected
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Outer {
private open class Data(val x: Int)
@@ -1,6 +1,11 @@
// "Make 'Data' protected" "true"
// ACTION: Make 'First' private
// ACTION: Add full qualifier
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' protected
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Outer {
protected open class Data(val x: Int)
@@ -1,4 +1,8 @@
// "Make 'Data' public" "true"
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
private open class Data(val x: Int)
@@ -1,4 +1,8 @@
// "Make 'Data' public" "true"
// ACTION: Add names to call arguments
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
open class Data(val x: Int)
@@ -1,4 +1,8 @@
// "Make 'Data' public" "true"
// ACTION: Add import for 'Other.Data'
// ACTION: Add names to call arguments
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Other {
@@ -1,4 +1,8 @@
// "Make 'Data' public" "true"
// ACTION: Add import for 'Other.Data'
// ACTION: Add names to call arguments
// ACTION: Introduce import alias
// ACTION: Make 'Data' public
// ACTION: Make 'First' private
class Other {
@@ -1,5 +1,10 @@
// "Make 'Outer' public" "true"
// ACTION: Add full qualifier
// ACTION: Implement interface
// ACTION: Introduce import alias
// ACTION: Make 'Derived' internal
// ACTION: Make 'Derived' private
// ACTION: Make 'Outer' public
import Outer.Base
@@ -1,5 +1,10 @@
// "Make 'Outer' public" "true"
// ACTION: Add full qualifier
// ACTION: Implement interface
// ACTION: Introduce import alias
// ACTION: Make 'Derived' internal
// ACTION: Make 'Derived' private
// ACTION: Make 'Outer' public
import Outer.Base
@@ -1,4 +1,8 @@
// "Make 'InternalString' public" "true"
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Make 'InternalString' public
// ACTION: Make 'User' internal
// ACTION: Make 'User' private
@@ -1,4 +1,8 @@
// "Make 'InternalString' public" "true"
// ACTION: Create test
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Introduce import alias
// ACTION: Make 'InternalString' public
// ACTION: Make 'User' internal
// ACTION: Make 'User' private
@@ -3,6 +3,7 @@
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Import members from 'PrivateInFileClass'
// ACTION: Introduce import alias
// ACTION: Make 'PrivateInnerClass' public
private class PrivateInFileClass<T : <caret>PrivateInFileClass.PrivateInnerClass> {
private class PrivateInnerClass
@@ -3,6 +3,7 @@
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Import members from 'PrivateInFileClass'
// ACTION: Introduce import alias
// ACTION: Make 'PrivateInnerClass' public
private class PrivateInFileClass<T : <caret>PrivateInFileClass.PrivateInnerClass> {
class PrivateInnerClass
@@ -1,5 +1,8 @@
// "Make 'SealedClass' public" "true"
// ACTION: "Make 'Test' private"
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'SealedClass' public
// ACTION: Make 'Test' private
private sealed class SealedClass
@@ -1,5 +1,8 @@
// "Make 'SealedClass' public" "true"
// ACTION: "Make 'Test' private"
// ACTION: Create test
// ACTION: Introduce import alias
// ACTION: Make 'SealedClass' public
// ACTION: Make 'Test' private
sealed class SealedClass
@@ -1,5 +1,7 @@
// "Make '<set-attribute>' internal" "true"
// ACTION: "Make '<set-attribute>' public"
// ACTION: Converts the assignment statement to an expression
// ACTION: Make '<set-attribute>' internal
// ACTION: Make '<set-attribute>' public
class Demo {
var attribute = "a"
@@ -1,5 +1,7 @@
// "Make '<set-attribute>' internal" "true"
// ACTION: "Make '<set-attribute>' public"
// ACTION: Converts the assignment statement to an expression
// ACTION: Make '<set-attribute>' internal
// ACTION: Make '<set-attribute>' public
class Demo {
var attribute = "a"
@@ -1,5 +1,7 @@
// "Make '<set-attribute>' public" "true"
// ACTION: "Make '<set-attribute>' internal"
// ACTION: Converts the assignment statement to an expression
// ACTION: Make '<set-attribute>' internal
// ACTION: Make '<set-attribute>' public
class Demo {
var attribute = "a"
@@ -1,5 +1,7 @@
// "Make '<set-attribute>' public" "true"
// ACTION: "Make '<set-attribute>' internal"
// ACTION: Converts the assignment statement to an expression
// ACTION: Make '<set-attribute>' internal
// ACTION: Make '<set-attribute>' public
class Demo {
var attribute = "a"
@@ -1,4 +1,6 @@
// "Change to constructor invocation" "true"
// ACTION: Add full qualifier
// ACTION: Change to constructor invocation
// ACTION: Introduce import alias
class My {
@@ -1,4 +1,6 @@
// "Change to constructor invocation" "true"
// ACTION: Add full qualifier
// ACTION: Change to constructor invocation
// ACTION: Introduce import alias
class My {

Some files were not shown because too many files have changed in this diff Show More