AS doesn't complain and compile successfully follo...
# getting-started
t
AS doesn't complain and compile successfully following code
attributes.forEach { name, value -> attribute(name, value) }
where
attributes
is
mapOf<String, String>()
. But when app running this code I got
ClassNoDefFoundError
exception. When I changed to
attributes.forEach { entry -> attribute(entry.key, entry.value) }
everything works ok Is it a bug in Kotlin?