Extract Function: Consider reference "broken" if corresponding diagnostics are changed after code fragment extraction

#KT-8633 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-03 20:40:31 +03:00
parent e03067846f
commit 14c657d448
4 changed files with 42 additions and 1 deletions
@@ -0,0 +1,14 @@
// PARAM_TYPES: kotlin.String
// PARAM_DESCRIPTOR: internal final fun kotlin.String.foo(): kotlin.Unit defined in X
fun print(a: Any) {
}
class X {
fun String.foo() {
<selection>print(extension)</selection>
}
val String.extension: Int get() = length()
}
@@ -0,0 +1,18 @@
// PARAM_TYPES: kotlin.String
// PARAM_DESCRIPTOR: internal final fun kotlin.String.foo(): kotlin.Unit defined in X
fun print(a: Any) {
}
class X {
fun String.foo() {
__dummyTestFun__()
}
private fun String.__dummyTestFun__() {
print(extension)
}
val String.extension: Int get() = length()
}