Added checking for function name in alternative signature.
This commit is contained in:
@@ -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?
|
||||
}
|
||||
Reference in New Issue
Block a user