Granular test configurations

This commit is contained in:
Andrey Breslav
2012-01-27 18:33:46 +04:00
parent 0da39c8bd6
commit d74b79d9db
673 changed files with 113 additions and 4 deletions
@@ -0,0 +1,12 @@
class B {
B(int i) {}
int call() {return 1;}
}
class A extends B {
A() {
super(10);
}
int call() { return super.call(); }
}
@@ -0,0 +1,10 @@
open class B(i : Int) {
open fun call() : Int {
return 1
}
}
open class A() : B(10) {
override fun call() : Int {
return super.call()
}
}
@@ -0,0 +1,11 @@
class Base {
void foo();
}
class A extends Base {
class C {
void test() {
A.super.foo();
}
}
}
@@ -0,0 +1,10 @@
open class Base() {
open fun foo() : Unit
}
open class A() : Base() {
open class C() {
open fun test() : Unit {
super@A.foo()
}
}
}
@@ -0,0 +1 @@
super.call();
@@ -0,0 +1 @@
super.call()