[Gradle][MPP] InternalKotlinSourceSet: Provide class information on casting failure
^KT-52726 Verification Pending
This commit is contained in:
committed by
Space
parent
63232b1849
commit
0f5a298689
+1
-1
@@ -11,7 +11,7 @@ import org.jetbrains.kotlin.gradle.utils.ObservableSet
|
||||
|
||||
internal val KotlinSourceSet.internal: InternalKotlinSourceSet
|
||||
get() = (this as? InternalKotlinSourceSet) ?: throw IllegalArgumentException(
|
||||
"KotlinSourceSet $name does not implement ${InternalKotlinSourceSet::class.simpleName}"
|
||||
"KotlinSourceSet $name (${this::class}) does not implement ${InternalKotlinSourceSet::class.simpleName}"
|
||||
)
|
||||
|
||||
internal interface InternalKotlinSourceSet : KotlinSourceSet {
|
||||
|
||||
Reference in New Issue
Block a user