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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user