I just split my models out into a separate sub-pro...
# gradle
j
I just split my models out into a separate sub-project in my build and now get smart-casting errors:
Smart cast to 'Bar' is impossible, because 'foo.bar' is a public API property declared in different module
Is there any way to tell the Kotlin compiler to stop erroring on this because it's another Kotlin sub-project in the same Gradle project?
j
I was figuring that'd be the case. Thanks @mbonnin.
h
AFAIK you can add the friendly modules option which shares more analysis information and enables smartcasts
e
What are friendly modules?
h
Sorry, I mean `friend-path`: https://youtrack.jetbrains.com/issue/KT-21910 See the attached sample