I am trying to make a singleton fragment by doing this:
object MyFragment: BottomSheetDialogFragment {...}
But while building the project it gives compile time exception:
org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Failed to generate expression: ktNameReferenceException
What is wrong with the above approach?