Chachako
02/03/2022, 5:54 PMprivate
. Is that possible now?dmitriy.novozhilov
02/03/2022, 6:35 PMralf
02/03/2022, 7:46 PMChachako
02/04/2022, 3:35 AMNo, but it will be possible with K2 plugins APIAnd is it possible to remove implicit declarations now or K2, for example Kotlin will create a primary constructor for the class implicitly, I want to remove it
dmitriy.novozhilov
02/04/2022, 7:10 AMChachako
02/04/2022, 8:23 AMWhat’s your usecase?I have a class that doesn’t allow manual creation (instance are usually returned by certain methods), so I want to delete the primary constructor or make its visibility
private
, also, when there is a primary constructor, operator fun invoke()
will be overwritten.dmitriy.novozhilov
02/04/2022, 8:34 AMprivate
as for explicitly declared constructordmitriy.novozhilov
02/04/2022, 8:36 AMChachako
02/04/2022, 8:39 AMChecker
to report errors, so I just want to hide the primary constructor automatically generated by the frontend