Why sometimes IDEA shows file extensions .kt? Is t...
# getting-started
v
Why sometimes IDEA shows file extensions .kt? Is this because it does not find a class with the same name inside?
a
It shows it when your file has something else at the top-level except for a class declaration
Because you can have multiple top level things in one file, that way idea shows you that this is a file not a single class
v
I thought, it did hide extension, when there were two top-level classes
Aren't there some annotations to point that it should be a class?