472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
41 lines
659 B
Kotlin
Vendored
41 lines
659 B
Kotlin
Vendored
// FILE: defaultAccessors.kt
|
|
package defaultAccessors
|
|
|
|
fun main(args: Array<String>) {
|
|
//Breakpoint!
|
|
A().testPublicPropertyInClass()
|
|
testPublicPropertyInLibrary()
|
|
}
|
|
|
|
class A: B() {
|
|
fun testPublicPropertyInClass() {
|
|
prop
|
|
prop = 2
|
|
}
|
|
}
|
|
|
|
open class B {
|
|
public var prop: Int = 1
|
|
}
|
|
|
|
fun testPublicPropertyInLibrary() {
|
|
val myClass = customLib.simpleLibFile.B()
|
|
myClass.prop
|
|
myClass.prop = 2
|
|
}
|
|
|
|
// STEP_INTO: 21
|
|
// SKIP_SYNTHETIC_METHODS: true
|
|
// SKIP_CONSTRUCTORS: true
|
|
|
|
// FILE: customLib/simpleLibFile.kt
|
|
package customLib.simpleLibFile
|
|
|
|
public fun foo() {
|
|
1 + 1
|
|
}
|
|
|
|
class B {
|
|
public var prop: Int = 1
|
|
}
|