FIC: introduce language feature, modifiers checks and basic tests

This commit is contained in:
Mikhail Zarechenskiy
2019-11-12 03:19:45 +03:00
parent 303811cbd9
commit 55935cc98a
13 changed files with 24195 additions and 4 deletions
@@ -0,0 +1,15 @@
// !LANGUAGE: +FunctionInterfaceConversion
fun interface Foo {
fun invoke(): String
}
class A : Foo {
override fun invoke(): String {
return "OK"
}
}
fun box(): String {
return A().invoke()
}