'Specify explicit type' action refactoring
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Specify return type explicitly" "true"
|
||||
package a
|
||||
|
||||
trait A {}
|
||||
|
||||
trait B {}
|
||||
|
||||
class C {
|
||||
fun property(): B<caret> = object : B, A {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
trait A {}
|
||||
|
||||
trait B {}
|
||||
|
||||
class C {
|
||||
val property: B<caret> = object : B, A {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Specify return type explicitly" "true"
|
||||
package a
|
||||
|
||||
trait A {}
|
||||
|
||||
trait B {}
|
||||
|
||||
class C {
|
||||
fun <caret>property() = object : B, A {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
trait A {}
|
||||
|
||||
trait B {}
|
||||
|
||||
class C {
|
||||
val <caret>property = object : B, A {}
|
||||
}
|
||||
Reference in New Issue
Block a user