In Kotlin M13, this was an acceptable way to create a JUnit rule:
@Rule @publicField val temp = TemporaryFolder()
Now that @publicField out of date, how else can this be achieved? The IDE hint suggests replacing @publicField with lateinit , but lateinit val no longer allowed, and I'm not sure if that would help, even if they were.
kotlin
jkschneider
source share