[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// FILE: A.java
|
||||
|
||||
public interface A extends B {
|
||||
public int getFoo();
|
||||
public void setFoo(int x);
|
||||
}
|
||||
|
||||
// FILE: BImpl.java
|
||||
|
||||
public class BImpl implements B {
|
||||
public int getFoo() {}
|
||||
public void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
interface B {
|
||||
var foo: Int
|
||||
}
|
||||
|
||||
interface C1 : A {
|
||||
override var foo: Int
|
||||
}
|
||||
|
||||
class D : C1, BImpl()
|
||||
|
||||
fun foo() {
|
||||
BImpl().foo = BImpl().foo + 1
|
||||
D().foo = D().foo + 2
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// FILE: A.java
|
||||
|
||||
public class A extends B {
|
||||
public int isFoo() { return 0; }
|
||||
public void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: F.java
|
||||
|
||||
public class F extends B {
|
||||
public final int isFoo() { return 0; }
|
||||
public final void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
open class B {
|
||||
open var isFoo: Int = 1
|
||||
}
|
||||
|
||||
class C1 : A() {
|
||||
override var isFoo: Int = 2
|
||||
}
|
||||
|
||||
class C2 : F() {
|
||||
override var isFoo: Int = 3
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// FILE: A.java
|
||||
|
||||
public class A extends B {
|
||||
public int getFoo() { return 0; }
|
||||
}
|
||||
|
||||
// FILE: F.java
|
||||
|
||||
public class F extends B {
|
||||
public final int getFoo() { return 0; }
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
open class B {
|
||||
open val foo: Int = 1
|
||||
}
|
||||
|
||||
class C1 : A() {
|
||||
override val foo: Int = 2
|
||||
}
|
||||
|
||||
class C2 : F() {
|
||||
override val foo: Int = 3
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// FILE: A.java
|
||||
|
||||
public class A extends B {
|
||||
public int getFoo() { return 0; }
|
||||
public void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: F.java
|
||||
|
||||
public class F extends B {
|
||||
public final int getFoo() { return 0; }
|
||||
public final void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: ConflictingModality.java
|
||||
|
||||
public class ConflictingModality extends B {
|
||||
public final int getFoo() { return 0; }
|
||||
public abstract void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: ConflictingVisibility.java
|
||||
|
||||
public class ConflictingVisibility extends B {
|
||||
public int getFoo() { return 0; }
|
||||
protected void setFoo(int x) {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
open class B {
|
||||
// check that final is not overridden
|
||||
open protected var foo: Int = 1
|
||||
}
|
||||
|
||||
class C1 : A() {
|
||||
override var foo: Int = 2
|
||||
}
|
||||
|
||||
class C2 : F() {
|
||||
override var foo: Int = 3
|
||||
}
|
||||
Reference in New Issue
Block a user