Merge K2 box tests to main box tests
This commit is contained in:
committed by
Space Team
parent
14c2030595
commit
d3be38476a
@@ -0,0 +1,32 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: SuperClass.java
|
||||
|
||||
public class SuperClass {
|
||||
private String stringParam;
|
||||
|
||||
public SuperClass(String stringParam)
|
||||
{
|
||||
this.stringParam = stringParam;
|
||||
}
|
||||
|
||||
public String getStringParam()
|
||||
{
|
||||
return stringParam;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: InheritedClass.java
|
||||
|
||||
public class InheritedClass extends SuperClass {
|
||||
public InheritedClass(String stringParam) {
|
||||
super(stringParam);
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(): String {
|
||||
val superValue = (SuperClass::stringParam)(SuperClass("O"))
|
||||
val inheritedValue = (InheritedClass("K")::stringParam)()
|
||||
return superValue + inheritedValue
|
||||
}
|
||||
Reference in New Issue
Block a user