Added checking for missing return type in alternative signature.

This commit is contained in:
Evgeny Gerashchenko
2012-06-21 17:04:48 +04:00
parent f0857d0081
commit d897ba754d
5 changed files with 65 additions and 5 deletions
@@ -0,0 +1,28 @@
/*
* Copyright 2010-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test;
import jet.runtime.typeinfo.KotlinSignature;
import java.lang.String;
public class ReturnTypeMissing {
@KotlinSignature("fun foo(a : String)")
public int foo(String a) {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,9 @@
package test
import java.util.*
public open class ReturnTypeMissing : Object() {
public open fun foo(p0 : String?) : Int {
throw UnsupportedOperationException()
}
}
@@ -0,0 +1,6 @@
namespace test
public open class test.ReturnTypeMissing : java.lang.Object {
public final /*constructor*/ fun <init>(): test.ReturnTypeMissing
public open fun foo(/*0*/ p0: jet.String?): jet.Int
}