KT-3189 Function invoke is called with no reason

prioritize tasks specially for invoke

 #KT-3189 Fixed
 #KT-3190 Fixed
 #KT-3297 Fixed
This commit is contained in:
Svetlana Isakova
2013-07-04 14:14:35 +04:00
parent 9347a48df8
commit cf5c5dba3d
11 changed files with 567 additions and 70 deletions
@@ -0,0 +1,12 @@
trait A
trait Foo {
fun A.invoke()
}
fun test(a: A, foo: Foo) {
a.foo()
}
fun test(a: Int, foo: Int.()->Unit) {
a.foo()
}