Animesh Sahu
11/20/2020, 8:04 AMAnimesh Sahu
11/20/2020, 8:06 AMMyClass::class.constructors.first().call(5)
Exception in thread "main" kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
Following error occurs, do we need to add dependency to the kotlin-reflect for this? Is there any other way, in the standard libarary itself.Vampire
11/20/2020, 8:32 AMAnimesh Sahu
11/20/2020, 8:33 AM::MyClass
actually gives primary constructor reference, so it works 😛