mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Allow any target declarations in marking references. Otherwise conflicts for references resolved to xml are not considered broken. This also fix evaluate for extension fields. #KT-11048 Fixed
20 lines
531 B
Plaintext
Vendored
20 lines
531 B
Plaintext
Vendored
// SUGGESTED_NAMES: view, getButton
|
|
// SUGGESTED_RETURN_TYPES: android.view.View?, android.view.View
|
|
// PARAM_DESCRIPTOR: public final class MyActivity : android.app.Activity defined in test in file toTopLevelFun.kt
|
|
// PARAM_TYPES: test.MyActivity, android.app.Activity
|
|
|
|
package test
|
|
|
|
import android.app.Activity
|
|
import android.view.View
|
|
import kotlinx.android.synthetic.main.layout.*
|
|
|
|
// SIBLING:
|
|
|
|
class MyActivity: Activity() {
|
|
fun test() {
|
|
val button = view()
|
|
}
|
|
}
|
|
|
|
private fun MyActivity.view(): View? = MyButton |