[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
@@ -0,0 +1,6 @@
// !COMPILER_VERSION 2.0
// SKIP_KT_DUMP
fun test() {
for (i in 0..0) <!SINGLE_ANONYMOUS_FUNCTION_WITH_NAME_WARNING!>fun x() {}<!>
}