In my KMP project, after upgrade to Kotlin 1.6.20,...
# multiplatform
r
In my KMP project, after upgrade to Kotlin 1.6.20, I see this error in IntelliJ only (no error when building from gradle). Is this correct behavior?
1
ServiceException
is defined in my common module like this:
Copy code
class ServiceException(message: String) : Exception(message)
a
Which Exception are you importing in ServiceException?
r
I'm not importing anything, so I assume it is
kotlin.Exception
a
Try extending java.lang.Exception instead
r
It's common code. I can't use java.lang.*
a
Ah try
e: java.lang.Exception
?
r
The same error just a bit different message
Incompatible types: ServiceException and Exception