21bc2887d2
Omit Unit return type Refactor handling of Unit type: extract separate object UnitType
20 lines
326 B
Kotlin
20 lines
326 B
Kotlin
package test
|
|
public open class Test(str : String) {
|
|
var myStr : String = "String2"
|
|
public open fun sout(str : String) {
|
|
System.out.println(str)
|
|
}
|
|
public open fun dummy(str : String) : String {
|
|
return str
|
|
}
|
|
public open fun test() {
|
|
sout("String")
|
|
val test = "String2"
|
|
sout(test)
|
|
sout(dummy(test))
|
|
Test(test)
|
|
}
|
|
{
|
|
myStr = str
|
|
}
|
|
} |