Is there a way to have a companion object without ...
# announcements
r
Is there a way to have a companion object without providing a singleton in the same time? Consider the following:
Copy code
class A{ companion object }
fun test(a: Any){}
fun foo(){
    test(A) // I want a compilation error here
}