Files
kotlin-fork/idea/testData/refactoring/pullUp/j2k/fromClassToNestedClass.kt.after
T
Nikolay Krasko 1bc8ad7852 Don't mess up with configuring project descriptors in PullPush tests
This commit fixes tests in 173 branch.
2017-11-30 13:24:05 +03:00

45 lines
1003 B
Plaintext
Vendored

class T {
class U {
abstract class A {
// INFO: {"checked": "true"}
var x = 2 * 3
// INFO: {"checked": "true"}
internal inner class X
// INFO: {"checked": "true"}
internal class Y
// INFO: {"checked": "true"}
fun foo(n: Int): Boolean {
return n > 0
}
// INFO: {"checked": "true"}
abstract fun bar(s: String): Int
companion object {
// INFO: {"checked": "true"}
var X = "1" + "2"
// INFO: {"checked": "true"}
@kotlin.jvm.JvmStatic
fun foo2(n: Int): String {
return "_" + n + "_"
}
}
}
}
}
fun test() {
val b = object : B() {
override fun bar(s: String) = s.length()
}
val t1 = b.x
b.x = t1 + 1
val t2 = T.U.A.X
b.foo(1)
T.U.A.foo2(2)
T.U.A.Y()
}