Unbelievable error message after compile

Hello everybody¡¡

I’m starting to learn different aspects about programming in kotlin.

Sometimes I recive this confussin error message, I don’t understand it. can anybody explain me it??

but if I open the generated class after compile:

Can anyone explain me why i’m getting that error??

Thanks in advance

With that limited information, no, we cannot explain.

Can you provide the source code of the AbsTRAXKt file?

Can you provide your project structure? Is it a Maven or Gradle project? Or just a plain Kotlin project in IntelliJ?

What version of Kotlin are you using?

1 Like

sorry @Skater901 , you’re right.

this is my souece code:

sometimes i don’t get any errors after compile the same file. i don’t understand why it sometimes works, sometimes not ¿?

That’s not all of your code, because you can’t run an abstract class. What’s the rest of your code look like?

This is my whole code @Skater901:

I think this might be a bug with IntelliJ or the Kotlin plugin/compiler.

Do you have a build.gradle, build.gradle.kts, or pom.xml file in your project? If so, please provide the contents.

It would be even betteer if you would share whole project.

Also, you can try to find help on Kotlin Slack, there is #getting-started channel

1 Like

Thanks to all,

I´m not sure about the problem but now it works fine, maybe the problem was related with the wrong *Run/Debug Configuration (*newbie problems :thinking: )