Fix broken isReferenceTo checking code for Android extensions

#KT-16132 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-02-06 17:16:34 +03:00
parent 25c1828288
commit 39010ab847
29 changed files with 409 additions and 27 deletions
@@ -0,0 +1,20 @@
package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.main.layout.*
// KT-16132 Renaming property provided by kotlinx leads to renaming another members
object Loginer {
fun login() { }
}
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
<caret>login.setOnClickListener {
Loginer.login()
}
}
}
@@ -0,0 +1,20 @@
package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.main.layout.*
// KT-16132 Renaming property provided by kotlinx leads to renaming another members
object Loginer {
fun login() { }
}
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
NEWNAME.setOnClickListener {
Loginer.login()
}
}
}
@@ -0,0 +1,17 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<Button
android:id="@+id/NEWNAME"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>
@@ -0,0 +1,17 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>