JS: prohibit to implement functional interfaces. See KT-15136

This commit is contained in:
Alexey Andreev
2016-12-19 13:12:33 +03:00
parent 822e58ad83
commit 84f094c770
10 changed files with 84 additions and 3 deletions
@@ -0,0 +1,9 @@
abstract class <!IMPLEMENTING_FUNCTION_INTERFACE!>A<!> : () -> Unit
<!IMPLEMENTING_FUNCTION_INTERFACE!>object B<!> : (String, Int) -> Long {
override fun invoke(a: String, B: Int) = 23L
}
abstract class <!IMPLEMENTING_FUNCTION_INTERFACE!>C<!> : kotlin.Function1<Any, Int>
abstract class <!IMPLEMENTING_FUNCTION_INTERFACE!>D<!> : C()