Tomas Kormanak
02/15/2022, 8:19 PMclass (
val email:String
) {
fun doSomething() {
print(email)
}
Then I decide not to define property email
in constructor and remove val
, IDEA automatically change all occurrences of email
like this:
import kotlinx.html.InputType
class (email:String) {
fun doSomething() {
print(InputType.email)
}
}
I am facing it in lot of similar cases, usually related to enums.
I have option `Editor->General->Auto Import->Add unambiguous imports on the fly`disabled.Tomas Kormanak
02/15/2022, 8:22 PMBuild #IU-213.5744.223, built on November 27, 2021
Ayfri
02/15/2022, 9:04 PMemail
won't exist in your context when removing property, intellij will search something to import to fix thisTomas Kormanak
02/15/2022, 9:29 PMyear
a IDEA automatically fix it to
MongoOperator.year
Alexey Belkov [JB]
02/16/2022, 8:11 AMTomas Kormanak
02/16/2022, 9:24 AMLanguages & Frameworks | Ktor | Add imports for Ktor modules automatically
Alexey Belkov [JB]
02/16/2022, 9:29 AM