additional tests to verify that cases from KT-4793 are fixed

#KT-4793 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-24 20:17:43 +02:00
parent ef4b32db0d
commit 3e5c687e9d
4 changed files with 46 additions and 2 deletions
@@ -1,3 +1,11 @@
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
}
@@ -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";
}
}
@@ -1,3 +1,11 @@
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
}
@@ -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";
}
}