Allowed call value with extension function type as simple function type.

This commit is contained in:
Stanislav Erokhin
2015-10-30 19:40:39 +03:00
parent b6f724cf58
commit 77411b2181
7 changed files with 52 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ public class Manager {
class Task(val callback: Manager.() -> Unit) : Runnable {
override public fun run() {
<!MISSING_RECEIVER!>callback<!>() // Manager is not accessible here, but no error is shown
callback(<!NO_VALUE_FOR_PARAMETER!>)<!> // Manager is not accessible here, but no error is shown
}
}
}