Added test with syntax error in alternative signature annotation.

This commit is contained in:
Evgeny Gerashchenko
2012-06-06 16:15:56 +04:00
parent 35e020e742
commit 0d47bf5472
3 changed files with 25 additions and 0 deletions
@@ -0,0 +1,10 @@
package test;
import jet.runtime.typeinfo.KotlinSignature;
public class SyntaxError {
@KotlinSignature("fun foo(,) : Int")
public Integer foo() {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,9 @@
package test
import java.util.*
public open class SyntaxError : Object() {
open fun foo() : Int? {
throw UnsupportedOperationException()
}
}
@@ -0,0 +1,6 @@
namespace test
open class test.SyntaxError : java.lang.Object {
final /*constructor*/ fun <init>(): test.SyntaxError
open fun foo(): jet.Int?
}