groostav
09/27/2019, 9:22 PMpackage asdf
fun Any.doThing() = TODO()
//...
package main
//no import statements
fun outer(){
  42.doThing() //<-- auto import `asdf.dothing`? 
  //No! I want to write the fully-qualified invocation instead!
  asdf.doThing(42) //error
  42.asdf.doThing() //error
  42.`asdf.doThing`() //error
}bbaldino
09/27/2019, 9:36 PMSam Schilling
09/27/2019, 9:42 PMRuckus
09/27/2019, 9:56 PMsupergroostav
09/27/2019, 10:07 PMwhy make it an extension function then?IntelliJ Live templates. I remember reading that live templates you were supposed to fully qualify everything and let the user + IDE alt-enter to import things as appropriate. Its not really a big deal, it just means my live-template generates code that doesnt compile until a few more alt-enter's.
louiscad
09/27/2019, 11:21 PMimport package.stuff as thing