[Test] Replace public fun box() with fun box() in all box tests

This commit is contained in:
Dmitriy Novozhilov
2021-07-14 15:58:48 +03:00
committed by teamcityserver
parent c168a561df
commit b9c549803d
31 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
public class SomeClass() : java.lang.Object() {
}
public fun box():String {
fun box():String {
System.out?.println(SomeClass().getClass())
return "OK"
}
+1 -1
View File
@@ -1,4 +1,4 @@
public fun box() : String {
fun box() : String {
if ( 0 == 0 ) { // Does not crash if either this...
if ( 0 == 0 ) { // ...or this is changed to if ( true )
// Does not crash if the following is uncommented.
+1 -1
View File
@@ -7,7 +7,7 @@ class Outer() {
}
}
fun box (): String {
fun box(): String {
val inner = Outer.Companion.Inner()
return "OK"
}
+1 -1
View File
@@ -1,6 +1,6 @@
operator fun Int?.inc() : Int { if (this != null) return this.inc() else throw NullPointerException() }
public fun box() : String {
fun box() : String {
var i : Int? = 10
val j = i++
+1 -1
View File
@@ -1,6 +1,6 @@
operator fun Int?.inc() = this!!.inc()
public fun box() : String {
fun box() : String {
var i : Int? = 10
val j = i++
+1 -1
View File
@@ -22,4 +22,4 @@ public open class PerfectNumberFinder() {
}
}
fun box () = if (PerfectNumberFinder().isPerfect(28)) "OK" else "fail"
fun box() = if (PerfectNumberFinder().isPerfect(28)) "OK" else "fail"