[K2] Disallow named functions as expressions

^KT-62573 Fixed
^KT-59945 Fixed
This commit is contained in:
Alejandro Serrano Mena
2023-10-13 12:42:46 +02:00
committed by Space Team
parent aaf7ccbebd
commit f227447837
18 changed files with 112 additions and 4 deletions
@@ -1,5 +1,6 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE
// !CHECK_TYPE
// !COMPILER_VERSION 2.0
fun foo(block: () -> (() -> Int)) {}
fun test() {