I am trying to interact with TeamCity using Kotlin.
When you convert a project to Kotlin (from .xml), you will have a Project.kt file in which you can install all your configurations.
Without editing, my looks like this:
object Project : Project()
Does this look like circular inheritance? Is there an import that I omit, but of course that wouldn't make that much difference? Can the name be interpreted differently depending on where it appears in the file?
My mind interprets the signature of an object as follows:
- object = object declaration for singleton.
- Project (first occurrence) = Name of the object.
- : = inheritance marker.
- Project (second occurrence) = base class for inheritance.
- () = constructor call to the base class.
Is this circular inheritance or did I miss something important about Kotlin? I looked here and here and can't seem to find my answer.
Zosal source
share