Report error when free function is called as extension

This commit is contained in:
Alexander Udalov
2015-05-25 20:10:46 +03:00
parent 14c2690447
commit ea6d0b464d
11 changed files with 53 additions and 2 deletions
@@ -0,0 +1,3 @@
fun foo(a: (String) -> Unit) {
"".<!FREE_FUNCTION_CALLED_AS_EXTENSION!>a<!>()
}