Merged LoadCompiledKotlin test int LoadJavaTest.

This commit is contained in:
Evgeny Gerashchenko
2013-12-06 16:48:03 +04:00
parent 62f44f7ed0
commit b7cfd676bf
491 changed files with 2032 additions and 2103 deletions
@@ -0,0 +1,13 @@
package test
trait X {
fun foo()
}
trait Y : X {
}
class B(val a: X) : X by a, Y {
override fun foo() {
}
}
@@ -0,0 +1,16 @@
package test
internal final class B : test.X, test.Y {
/*primary*/ public constructor B(/*0*/ a: test.X)
internal final val a: test.X
internal final fun <get-a>(): test.X
internal open override /*2*/ fun foo(): jet.Unit
}
internal trait X {
internal abstract fun foo(): jet.Unit
}
internal trait Y : test.X {
internal abstract override /*1*/ /*fake_override*/ fun foo(): jet.Unit
}
@@ -0,0 +1,14 @@
package test
public trait Super1 {
public fun foo(): CharSequence
private fun bar(): String
}
public trait Super2 {
private fun foo(): String
public fun bar(): CharSequence
}
public trait Sub: Super1, Super2 {
}
@@ -0,0 +1,16 @@
package test
public trait Sub : test.Super1, test.Super2 {
public abstract override /*1*/ /*fake_override*/ fun bar(): jet.CharSequence
public abstract override /*1*/ /*fake_override*/ fun foo(): jet.CharSequence
}
public trait Super1 {
private abstract fun bar(): jet.String
public abstract fun foo(): jet.CharSequence
}
public trait Super2 {
public abstract fun bar(): jet.CharSequence
private abstract fun foo(): jet.String
}
@@ -0,0 +1,14 @@
package test
public trait Super1 {
val x: String
var y: String
}
public trait Super2 {
var x: String
val y: String
}
public trait Sub: Super1, Super2 {
}
@@ -0,0 +1,26 @@
package test
public trait Sub : test.Super1, test.Super2 {
internal abstract override /*2*/ /*fake_override*/ var x: jet.String
internal abstract override /*2*/ /*fake_override*/ fun <get-x>(): jet.String
internal abstract override /*1*/ /*fake_override*/ fun <set-x>(/*0*/ <set-?>: jet.String): jet.Unit
internal abstract override /*2*/ /*fake_override*/ var y: jet.String
internal abstract override /*2*/ /*fake_override*/ fun <get-y>(): jet.String
internal abstract override /*1*/ /*fake_override*/ fun <set-y>(/*0*/ <set-?>: jet.String): jet.Unit
}
public trait Super1 {
internal abstract val x: jet.String
internal abstract fun <get-x>(): jet.String
internal abstract var y: jet.String
internal abstract fun <get-y>(): jet.String
internal abstract fun <set-y>(/*0*/ <set-?>: jet.String): jet.Unit
}
public trait Super2 {
internal abstract var x: jet.String
internal abstract fun <get-x>(): jet.String
internal abstract fun <set-x>(/*0*/ <set-?>: jet.String): jet.Unit
internal abstract val y: jet.String
internal abstract fun <get-y>(): jet.String
}
@@ -0,0 +1,14 @@
package test
public trait Super1 {
val x: String
val y: CharSequence
}
public trait Super2 {
val x: CharSequence
val y: String
}
public trait Sub: Super1, Super2 {
}
@@ -0,0 +1,22 @@
package test
public trait Sub : test.Super1, test.Super2 {
internal abstract override /*2*/ /*fake_override*/ val x: jet.String
internal abstract override /*2*/ /*fake_override*/ fun <get-x>(): jet.String
internal abstract override /*2*/ /*fake_override*/ val y: jet.String
internal abstract override /*2*/ /*fake_override*/ fun <get-y>(): jet.String
}
public trait Super1 {
internal abstract val x: jet.String
internal abstract fun <get-x>(): jet.String
internal abstract val y: jet.CharSequence
internal abstract fun <get-y>(): jet.CharSequence
}
public trait Super2 {
internal abstract val x: jet.CharSequence
internal abstract fun <get-x>(): jet.CharSequence
internal abstract val y: jet.String
internal abstract fun <get-y>(): jet.String
}
@@ -0,0 +1,23 @@
package test
abstract class A {
abstract fun foo()
}
trait X : A {
fun bar() {
}
}
open class B() : A() {
override fun foo() {
}
}
class C() : A(), X {
override fun foo() {
}
}
class D(val c: C) : B(), X by c {
}
@@ -0,0 +1,30 @@
package test
internal abstract class A {
/*primary*/ public constructor A()
internal abstract fun foo(): jet.Unit
}
internal open class B : test.A {
/*primary*/ public constructor B()
internal open override /*1*/ fun foo(): jet.Unit
}
internal final class C : test.A, test.X {
/*primary*/ public constructor C()
internal open override /*1*/ /*fake_override*/ fun bar(): jet.Unit
internal open override /*2*/ fun foo(): jet.Unit
}
internal final class D : test.B, test.X {
/*primary*/ public constructor D(/*0*/ c: test.C)
internal final val c: test.C
internal final fun <get-c>(): test.C
internal open override /*1*/ /*delegation*/ fun bar(): jet.Unit
internal open override /*2*/ /*fake_override*/ fun foo(): jet.Unit
}
internal trait X : test.A {
internal open fun bar(): jet.Unit
internal abstract override /*1*/ /*fake_override*/ fun foo(): jet.Unit
}
@@ -0,0 +1,8 @@
package test
public trait TaskObject {
fun foo(r: Runnable)
}
fun foo(r: Runnable) {
}
@@ -0,0 +1,7 @@
package test
internal fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
public trait TaskObject {
internal abstract fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
}
@@ -0,0 +1,5 @@
package test
public trait Runnable {
fun run()
}
@@ -0,0 +1,5 @@
package test
public trait Runnable {
internal abstract fun run(): jet.Unit
}
@@ -0,0 +1,14 @@
package test
trait A {
fun foo() {}
fun bar() {}
}
open class B : A {
}
class C : B() {
override fun bar() {}
}
@@ -0,0 +1,18 @@
package test
internal trait A {
internal open fun bar(): jet.Unit
internal open fun foo(): jet.Unit
}
internal open class B : test.A {
/*primary*/ public constructor B()
internal open override /*1*/ /*fake_override*/ fun bar(): jet.Unit
internal open override /*1*/ /*fake_override*/ fun foo(): jet.Unit
}
internal final class C : test.B {
/*primary*/ public constructor C()
internal open override /*1*/ fun bar(): jet.Unit
internal open override /*1*/ /*fake_override*/ fun foo(): jet.Unit
}
@@ -0,0 +1,5 @@
package test
class PropagateSubclassOfComparable(): Comparable<PropagateSubclassOfComparable> {
override fun compareTo(other: PropagateSubclassOfComparable): Int = throw IllegalStateException()
}
@@ -0,0 +1,6 @@
package test
internal final class PropagateSubclassOfComparable : jet.Comparable<test.PropagateSubclassOfComparable> {
/*primary*/ public constructor PropagateSubclassOfComparable()
public open override /*1*/ fun compareTo(/*0*/ other: test.PropagateSubclassOfComparable): jet.Int
}
@@ -0,0 +1,3 @@
package test
fun <T> f() = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ T> f(): jet.Int
@@ -0,0 +1,3 @@
package test
fun <P> funParamParam(a: Int, b: P) = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ P> funParamParam(/*0*/ a: jet.Int, /*1*/ b: P): jet.Int
@@ -0,0 +1,3 @@
package test
fun <P> funParamParam(a: Int, b: P) = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ P> funParamParam(/*0*/ a: jet.Int, /*1*/ b: P): jet.Int
@@ -0,0 +1,3 @@
package test
fun <P, Q : P> funParamReferencesParam() = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ P, /*1*/ Q : P> funParamReferencesParam(): jet.Int
@@ -0,0 +1,8 @@
package test
trait Foo
trait Bar
fun <T> foo()
where T : Foo, T : Bar
= Unit.VALUE
@@ -0,0 +1,9 @@
package test
internal fun </*0*/ T : test.Foo> foo(): jet.Unit where T : test.Bar
internal trait Bar {
}
internal trait Foo {
}
@@ -0,0 +1,3 @@
package test
fun <A : java.lang.Number> uno() = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ A : java.lang.Number> uno(): jet.Int
@@ -0,0 +1,3 @@
package test
fun <A> tres() where A : java.lang.Number, A : java.io.Serializable = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ A : java.lang.Number> tres(): jet.Int where A : java.io.Serializable
@@ -0,0 +1,3 @@
package test
fun <A : java.io.Serializable> dos() = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ A : java.io.Serializable> dos(): jet.Int
@@ -0,0 +1,3 @@
package test
fun <P> funParamVarargParam(a: Int, vararg b: P) = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ P> funParamVarargParam(/*0*/ a: jet.Int, /*1*/ vararg b: P /*jet.Array<P>*/): jet.Int
@@ -0,0 +1,3 @@
package test
fun <P, Q> funTwoTypeParams() = 1
@@ -0,0 +1,3 @@
package test
internal fun </*0*/ P, /*1*/ Q> funTwoTypeParams(): jet.Int
@@ -0,0 +1,3 @@
package test
fun ff(p: List<CharSequence>) = 1
@@ -0,0 +1,3 @@
package test
internal fun ff(/*0*/ p: jet.List<jet.CharSequence>): jet.Int
@@ -0,0 +1,5 @@
package test
import java.lang.CharSequence
fun ff(p: List<CharSequence?>) = 1
@@ -0,0 +1,3 @@
package test
internal fun ff(/*0*/ p: jet.List<java.lang.CharSequence?>): jet.Int
@@ -0,0 +1,3 @@
package test
fun fff(a: java.lang.Integer?) = 1
@@ -0,0 +1,3 @@
package test
internal fun fff(/*0*/ a: java.lang.Integer?): jet.Int
@@ -0,0 +1,5 @@
package test
import java.util.ArrayList
fun ffgg(): List<CharSequence> = ArrayList()
@@ -0,0 +1,3 @@
package test
internal fun ffgg(): jet.List<jet.CharSequence>
@@ -0,0 +1,5 @@
package test
import java.util.ArrayList
fun ffgg(): List<CharSequence?> = ArrayList()
@@ -0,0 +1,3 @@
package test
internal fun ffgg(): jet.List<jet.CharSequence?>
@@ -0,0 +1,5 @@
package test
class River {
fun song() = 1
}
@@ -0,0 +1,6 @@
package test
internal final class River {
/*primary*/ public constructor River()
internal final fun song(): jet.Int
}
@@ -0,0 +1,5 @@
package test
class ClassFunGetFoo {
fun getFoo() = 1
}
@@ -0,0 +1,6 @@
package test
internal final class ClassFunGetFoo {
/*primary*/ public constructor ClassFunGetFoo()
internal final fun getFoo(): jet.Int
}
@@ -0,0 +1,6 @@
package test
class ClassFunGetFoo {
fun getFoo() = 1
fun setFoo(p: Int) {}
}
@@ -0,0 +1,7 @@
package test
internal final class ClassFunGetFoo {
/*primary*/ public constructor ClassFunGetFoo()
internal final fun getFoo(): jet.Int
internal final fun setFoo(/*0*/ p: jet.Int): jet.Unit
}
@@ -0,0 +1,5 @@
package test
class ClassFunGetFoo {
fun set(p: Int) { }
}
@@ -0,0 +1,6 @@
package test
internal final class ClassFunGetFoo {
/*primary*/ public constructor ClassFunGetFoo()
internal final fun set(/*0*/ p: jet.Int): jet.Unit
}
@@ -0,0 +1,3 @@
package test
fun Int.shuffle() = 1
@@ -0,0 +1,3 @@
package test
internal fun jet.Int.shuffle(): jet.Int
@@ -0,0 +1,5 @@
package test
class ExtFunInClass {
fun Int.shuffle() = 1
}
@@ -0,0 +1,6 @@
package test
internal final class ExtFunInClass {
/*primary*/ public constructor ExtFunInClass()
internal final fun jet.Int.shuffle(): jet.Int
}
@@ -0,0 +1,3 @@
package test
fun funDefaultArg(p: Int, q: Int = 17, r: Int = 18) = 19
@@ -0,0 +1,3 @@
package test
internal fun funDefaultArg(/*0*/ p: jet.Int, /*1*/ q: jet.Int = ..., /*2*/ r: jet.Int = ...): jet.Int
@@ -0,0 +1,3 @@
package test
fun fff(a: java.lang.Integer) = 1
@@ -0,0 +1,3 @@
package test
internal fun fff(/*0*/ a: java.lang.Integer): jet.Int
@@ -0,0 +1,3 @@
package test
fun varargInt(a: Int, vararg b: Int) = 1
@@ -0,0 +1,3 @@
package test
internal fun varargInt(/*0*/ a: jet.Int, /*1*/ vararg b: jet.Int /*jet.IntArray*/): jet.Int
@@ -0,0 +1,3 @@
package test
fun varargCharSequence(a: Int, vararg b: java.lang.Integer) = 1
@@ -0,0 +1,3 @@
package test
internal fun varargCharSequence(/*0*/ a: jet.Int, /*1*/ vararg b: java.lang.Integer /*jet.Array<java.lang.Integer>*/): jet.Int
@@ -0,0 +1,5 @@
package test
abstract class ModifierAbstract {
abstract fun abs(): Int
}
@@ -0,0 +1,6 @@
package test
internal abstract class ModifierAbstract {
/*primary*/ public constructor ModifierAbstract()
internal abstract fun abs(): jet.Int
}
@@ -0,0 +1,5 @@
package test
open class ModifierOpen {
open fun abs() = 1
}
@@ -0,0 +1,6 @@
package test
internal open class ModifierOpen {
/*primary*/ public constructor ModifierOpen()
internal open fun abs(): jet.Int
}
@@ -0,0 +1,3 @@
package test
fun f() = 1
@@ -0,0 +1,3 @@
package test
internal fun f(): jet.Int
@@ -0,0 +1,3 @@
package test
fun getFoo() = 1
@@ -0,0 +1,3 @@
package test
internal fun getFoo(): jet.Int
@@ -0,0 +1,3 @@
package test
fun ff(): java.lang.Integer = throw Exception()
@@ -0,0 +1,3 @@
package test
internal fun ff(): java.lang.Integer
@@ -0,0 +1,3 @@
package test
fun ff(): java.lang.Integer? = null
@@ -0,0 +1,3 @@
package test
internal fun ff(): java.lang.Integer?
@@ -0,0 +1,5 @@
package test
fun f(vararg t: Int, f: () -> Unit) {}
fun f(vararg t: String, f: () -> Unit) {}
@@ -0,0 +1,4 @@
package test
internal fun f(/*0*/ vararg t: jet.String /*jet.Array<jet.String>*/, /*1*/ f: () -> jet.Unit): jet.Unit
internal fun f(/*0*/ vararg t: jet.Int /*jet.IntArray*/, /*1*/ f: () -> jet.Unit): jet.Unit