Opt-in into API implementation
qwwdfsad opened this issue · 3 comments
qwwdfsad commented
This issue is for discussion of the proposal to introduce @SubclassOptInRequired
annotation in Kotlin to provide a mechanism to require opt-in for API implementation only.
Proposal PR #319
nreid260 commented
This seems like it can be achieved today without adding new primitives:
interface DontSubclassMe {
@MyExperimentalApi
fun areYouSureYouWantToSubclassMe()
fun theRealMethods()
}