When creating a file with only top-level declarati...
# getting-started
c
When creating a file with only top-level declarations, I know that there is an annotation so the automatically generated class isn't named “<File name>Kt”, but I can't remember which annotation it is, nor find the good search terms...
e
@file:JvmName
c
Ah, it must be placed before the package declaration. If you place it after the package declaration it says it's not applicable to ‘file:’
e
yep, if you place it elsewhere then it applies to whatever follows it, which isn't "file"
c
Thanks a lot, I was very confused why it didn't accept it.