additional tests to verify that cases from KT-4793 are fixed
#KT-4793 Fixed
This commit is contained in:
+9
-1
@@ -1,3 +1,11 @@
|
|||||||
package testing.rename
|
package testing.rename
|
||||||
|
|
||||||
public class Foo(public val /*rename*/second: String)
|
public open class Foo(public open val /*rename*/second: String)
|
||||||
|
|
||||||
|
public class Bar : Foo("abc") {
|
||||||
|
override val second = "xyzzy"
|
||||||
|
}
|
||||||
|
|
||||||
|
fun usages(f: Foo, b: Bar): String {
|
||||||
|
return f.second + b.second
|
||||||
|
}
|
||||||
|
|||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
package testng;
|
||||||
|
|
||||||
|
import testing.rename.Foo;
|
||||||
|
|
||||||
|
public class FooImpl extends Foo {
|
||||||
|
public FooImpl(String first) {
|
||||||
|
super(first);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getSecond() {
|
||||||
|
return "abc";
|
||||||
|
}
|
||||||
|
}
|
||||||
+9
-1
@@ -1,3 +1,11 @@
|
|||||||
package testing.rename
|
package testing.rename
|
||||||
|
|
||||||
public class Foo(public val /*rename*/first: String)
|
public open class Foo(public open val /*rename*/first: String)
|
||||||
|
|
||||||
|
public class Bar : Foo("abc") {
|
||||||
|
override val first = "xyzzy"
|
||||||
|
}
|
||||||
|
|
||||||
|
fun usages(f: Foo, b: Bar): String {
|
||||||
|
return f.first + b.first
|
||||||
|
}
|
||||||
|
|||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
package testng;
|
||||||
|
|
||||||
|
import testing.rename.Foo;
|
||||||
|
|
||||||
|
public class FooImpl extends Foo {
|
||||||
|
public FooImpl(String first) {
|
||||||
|
super(first);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getFirst() {
|
||||||
|
return "abc";
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user