KT-2060 fix

This commit is contained in:
Alex Tkachman
2012-07-11 13:10:54 +03:00
parent 207c75b956
commit 8012725d38
4 changed files with 34 additions and 4 deletions
@@ -0,0 +1,11 @@
package testing; // There is no error if both files are in default package
public abstract class ClassWithInternals {
protected var some: Int = 0;
protected var someGetter: Int = 0
get() = 5
protected fun foo() : Int = 0
public abstract fun start() : Unit;
}
@@ -0,0 +1,12 @@
import testing.ClassWithInternals
public class HelloServer() : ClassWithInternals() {
public override fun start() {
val test = foo() + someGetter //+ some
}
}
fun box() : String {
HelloServer().start()
return "OK"
}