[Test] Replace public fun box() with fun box() in all box tests
This commit is contained in:
committed by
teamcityserver
parent
c168a561df
commit
b9c549803d
@@ -1,4 +1,4 @@
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int?
|
||||
i = 10
|
||||
// assignPlus on a smart cast should work
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int?
|
||||
i = 10
|
||||
// We have "double" smart cast here:
|
||||
|
||||
@@ -3,7 +3,7 @@ class Derived: Base
|
||||
class Another: Base
|
||||
operator fun Base.inc(): Derived { return Derived() }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Base
|
||||
i = Another()
|
||||
val j = i++
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ open class Base
|
||||
class Derived: Base()
|
||||
operator fun Derived.inc(): Derived { return Derived() }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Base
|
||||
i = Derived()
|
||||
val j = i++
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Short?
|
||||
i = 10
|
||||
// Postfix increment on a smart casted short should work
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int?
|
||||
i = 10
|
||||
// Postfix increment on a smart cast should work
|
||||
|
||||
@@ -2,7 +2,7 @@ class MyClass
|
||||
|
||||
operator fun MyClass?.inc(): MyClass? = null
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : MyClass?
|
||||
i = MyClass()
|
||||
val j = i++
|
||||
|
||||
@@ -2,7 +2,7 @@ operator fun Int?.inc(): Int? = this
|
||||
|
||||
fun init(): Int? { return 10 }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int? = init()
|
||||
val j = i++
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ class Derived: Base
|
||||
class Another: Base
|
||||
operator fun Base.inc(): Derived { return Derived() }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Base
|
||||
i = Another()
|
||||
val j = ++i
|
||||
|
||||
@@ -2,7 +2,7 @@ open class Base
|
||||
class Derived: Base()
|
||||
operator fun Derived.inc(): Derived { return Derived() }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Base
|
||||
i = Derived()
|
||||
val j = ++i
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int?
|
||||
i = 10
|
||||
// Prefix increment on a smart cast should work
|
||||
|
||||
@@ -2,7 +2,7 @@ class MyClass
|
||||
|
||||
operator fun MyClass?.inc(): MyClass? = null
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : MyClass?
|
||||
i = MyClass()
|
||||
val j = ++i
|
||||
|
||||
@@ -2,7 +2,7 @@ operator fun Int?.inc(): Int? = this
|
||||
|
||||
fun init(): Int? { return 10 }
|
||||
|
||||
public fun box() : String {
|
||||
fun box() : String {
|
||||
var i : Int? = init()
|
||||
val j = ++i
|
||||
|
||||
|
||||
Reference in New Issue
Block a user