Added check for value parameters number in alternative signatures loading.

This commit is contained in:
Evgeny Gerashchenko
2012-06-20 21:36:24 +04:00
parent d3041d410e
commit 1649b208cb
4 changed files with 32 additions and 0 deletions
@@ -0,0 +1,10 @@
package test;
import jet.runtime.typeinfo.KotlinSignature;
public class WrongValueParametersCount {
@KotlinSignature("fun foo(a : Int) : Int")
public Integer foo() {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,9 @@
package test
import java.util.*
public open class WrongValueParametersCount : Object() {
public open fun foo() : Int? {
throw UnsupportedOperationException()
}
}
@@ -0,0 +1,6 @@
namespace test
public open class test.WrongValueParametersCount : java.lang.Object {
public final /*constructor*/ fun <init>(): test.WrongValueParametersCount
public open fun foo(): jet.Int?
}