Prioritized synthetic and not synthetic functions.

This commit is contained in:
Evgeny Gerashchenko
2013-03-28 19:56:40 +04:00
parent 2e678a94f1
commit 0fee69fe07
4 changed files with 20 additions and 2 deletions
@@ -0,0 +1,7 @@
fun Runnable(f: () -> Unit): Runnable = object : Runnable {
public override fun run() {
f()
}
}
val x = Runnable { }