Converter:
Use formatter in converter tests Reformat test data
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
package test
|
||||
public class Test(str : String) {
|
||||
var myStr : String = "String2"
|
||||
public fun sout(str : String) {
|
||||
System.out.println(str)
|
||||
}
|
||||
public fun dummy(str : String) : String {
|
||||
return str
|
||||
}
|
||||
public fun test() {
|
||||
sout("String")
|
||||
val test = "String2"
|
||||
sout(test)
|
||||
sout(dummy(test))
|
||||
Test(test)
|
||||
}
|
||||
{
|
||||
myStr = str
|
||||
}
|
||||
|
||||
public class Test(str: String) {
|
||||
var myStr: String = "String2"
|
||||
public fun sout(str: String) {
|
||||
System.out.println(str)
|
||||
}
|
||||
public fun dummy(str: String): String {
|
||||
return str
|
||||
}
|
||||
public fun test() {
|
||||
sout("String")
|
||||
val test = "String2"
|
||||
sout(test)
|
||||
sout(dummy(test))
|
||||
Test(test)
|
||||
}
|
||||
{
|
||||
myStr = str
|
||||
}
|
||||
}
|
||||
@@ -1,20 +1,21 @@
|
||||
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")
|
||||
var test : String = "String2"
|
||||
sout(test)
|
||||
sout(dummy(test))
|
||||
Test(test)
|
||||
}
|
||||
{
|
||||
myStr = str
|
||||
}
|
||||
|
||||
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")
|
||||
var test: String = "String2"
|
||||
sout(test)
|
||||
sout(dummy(test))
|
||||
Test(test)
|
||||
}
|
||||
{
|
||||
myStr = str
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,18 @@
|
||||
package test
|
||||
|
||||
class Foo() {
|
||||
fun execute() {
|
||||
}
|
||||
fun execute() {
|
||||
}
|
||||
}
|
||||
class Bar() {
|
||||
var fooNotNull : Foo = Foo()
|
||||
var fooNullable : Foo = null
|
||||
var fooNotNull: Foo = Foo()
|
||||
var fooNullable: Foo = null
|
||||
}
|
||||
class Test() {
|
||||
public fun test(barNotNull : Bar, barNullable : Bar) {
|
||||
barNotNull.fooNotNull.execute()
|
||||
barNotNull.fooNullable.execute()
|
||||
barNullable.fooNotNull.execute()
|
||||
barNullable.fooNullable.execute()
|
||||
}
|
||||
public fun test(barNotNull: Bar, barNullable: Bar) {
|
||||
barNotNull.fooNotNull.execute()
|
||||
barNotNull.fooNullable.execute()
|
||||
barNullable.fooNotNull.execute()
|
||||
barNullable.fooNullable.execute()
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,18 @@
|
||||
package test
|
||||
|
||||
open class Foo() {
|
||||
open fun execute() {
|
||||
}
|
||||
open fun execute() {
|
||||
}
|
||||
}
|
||||
open class Bar() {
|
||||
var fooNotNull : Foo = Foo()
|
||||
var fooNullable : Foo? = null
|
||||
var fooNotNull: Foo = Foo()
|
||||
var fooNullable: Foo? = null
|
||||
}
|
||||
open class Test() {
|
||||
public open fun test(barNotNull : Bar, barNullable : Bar?) {
|
||||
barNotNull.fooNotNull.execute()
|
||||
barNotNull.fooNullable?.execute()
|
||||
barNullable?.fooNotNull?.execute()
|
||||
barNullable?.fooNullable?.execute()
|
||||
}
|
||||
public open fun test(barNotNull: Bar, barNullable: Bar?) {
|
||||
barNotNull.fooNotNull.execute()
|
||||
barNotNull.fooNullable?.execute()
|
||||
barNullable?.fooNotNull?.execute()
|
||||
barNullable?.fooNullable?.execute()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user