Distinguish between no declared arguments and an empty argument list

in a function literal
If there are no arguments, any number of them might be expected
This commit is contained in:
Svetlana Isakova
2015-05-25 14:24:35 +03:00
committed by Alexander Udalov
parent d9568ef88c
commit 14c2690447
6 changed files with 32 additions and 8 deletions
@@ -0,0 +1,5 @@
package
internal fun foo(/*0*/ g: () -> kotlin.Int): kotlin.Unit
internal fun foo(/*0*/ f: (kotlin.Int) -> kotlin.Int): kotlin.Unit
internal fun test(): kotlin.Unit