Added test with syntax error in alternative signature annotation.
This commit is contained in:
@@ -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?
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user