Added simplest test for @KotlinSignature parsing.
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
import java.lang.UnsupportedOperationException;
|
||||||
|
import java.util.*;
|
||||||
|
import jet.runtime.typeinfo.KotlinSignature;
|
||||||
|
|
||||||
|
public class MethodWithAlternativeSignature {
|
||||||
|
@KotlinSignature("fun foo(a : String, b : List<Map.Entry<String?, String>?>) : String")
|
||||||
|
public String foo(String a, List<Map.Entry<String, String>> b) {
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
import java.util.*
|
||||||
|
|
||||||
|
public open class MethodWithAlternativeSignature : Object() {
|
||||||
|
open fun foo(p0 : String, p1 : List<Map.Entry<String?, String>?>) : String = ""
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
namespace test
|
||||||
|
|
||||||
|
open class test.MethodWithAlternativeSignature : java.lang.Object {
|
||||||
|
final /*constructor*/ fun <init>(): test.MethodWithAlternativeSignature
|
||||||
|
open fun foo(/*0*/ p0: jet.String, /*1*/ p1: java.util.List<java.util.Map.Entry<jet.String?, jet.String>?>): jet.String
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user