Join Slack
Powered by
thats my usual goto also, however I need a compani...
# kotlin-native
d
drofwarcs
02/25/2019, 10:56 PM
thats my usual goto also, however I need a companion in this case because the function is creating an instance of a class that has a private constructor
r
russhwolf
02/26/2019, 12:24 AM
Pretty sure you can always shorten
.init()
to
()
in swift so you could get to
Foo.Companion().doSomething()
➕ 2
d
drofwarcs
02/26/2019, 2:21 PM
cool thx
4
Views
Open in Slack
Previous
Next