Added simplest test for @KotlinSignature parsing.

This commit is contained in:
Evgeny Gerashchenko
2012-06-01 21:44:31 +04:00
parent 688b509b96
commit e049bb00d8
3 changed files with 25 additions and 0 deletions
@@ -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();
}
}
@@ -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 = ""
}
@@ -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
}