JS frontend: additional check for nativeSetter -- check that the return type is either Unit or a supertype of the second parameter's type.

This commit is contained in:
Zalim Bashorov
2014-12-30 16:49:16 +03:00
parent 76bafb9634
commit 619854a7a3
17 changed files with 134 additions and 34 deletions
@@ -7,7 +7,7 @@ fun String.bar(n: Int, v: Any) {}
native
class C {
nativeSetter
fun foo(d: Double, v: Any): String?
fun foo(d: Double, v: Any): Any
nativeSetter
fun bar(d: Double, v: Any): String? = noImpl
fun bar(d: Double, v: Any): Any = noImpl
}