y
02/14/2024, 1:44 PMMyClass
with the path ::MyClass
. for example, someNullableVal?.let(::MyClass)
.
just wondering - is there a fully qualified syntax here? I would expect something like MyClass::MyClass
or MyClass::constructor
or something.ephemient
02/14/2024, 1:48 PM::MyClass
is the full form, because MyClass()
is the callable in Kotlin, not MyClass.MyClass()
or anything like thaty
02/14/2024, 1:51 PM