Converter:
Omit Unit return type Refactor handling of Unit type: extract separate object UnitType
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
open class Base() {
|
||||
open fun foo() : Unit {
|
||||
open fun foo() {
|
||||
}
|
||||
}
|
||||
open class A() : Base() {
|
||||
open class C() {
|
||||
open fun test() : Unit {
|
||||
open fun test() {
|
||||
this@A.foo()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
open class Base() {
|
||||
open fun foo() : Unit {
|
||||
open fun foo() {
|
||||
}
|
||||
}
|
||||
open class A() : Base() {
|
||||
open class C() {
|
||||
open fun test() : Unit {
|
||||
open fun test() {
|
||||
this@A.foo()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user