Hey guys, this code sample passed the compiler and...
# announcements
g
Hey guys, this code sample passed the compiler and failed at runtime:
Copy code
fun deserialize(text: String) : Any {

	// This code is part of a configuration deserializer; isList is a Boolean defined on the same class
	return if (isList) reader.readValues<Any>(text).readAll()
	else reader.readValue(text)
}