Added checking for function name in alternative signature.

This commit is contained in:
Evgeny Gerashchenko
2012-06-21 17:14:03 +04:00
parent d897ba754d
commit 2840f6d3ba
4 changed files with 30 additions and 0 deletions
@@ -0,0 +1,10 @@
package test;
import jet.runtime.typeinfo.KotlinSignature;
public class WrongMethodName {
@KotlinSignature("fun bar() : String")
public String foo() {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,7 @@
package test
import java.util.*
public open class WrongMethodName : Object() {
public open fun foo() : String? = ""
}
@@ -0,0 +1,6 @@
namespace test
public open class test.WrongMethodName : java.lang.Object {
public final /*constructor*/ fun <init>(): test.WrongMethodName
public open fun foo(): jet.String?
}