mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-18 13:00:25 +00:00
improve classcasts
This commit is contained in:
@@ -3,10 +3,13 @@ package dev.inmo.micro_utils.ksp.classcasts.generator.test
|
||||
import dev.inmo.micro_utils.ksp.classcasts.ClassCastsExcluded
|
||||
import dev.inmo.micro_utils.ksp.classcasts.ClassCastsIncluded
|
||||
|
||||
@ClassCastsIncluded
|
||||
@ClassCastsIncluded(levelsToInclude = 1)
|
||||
sealed interface Test {
|
||||
object A : Test
|
||||
@ClassCastsExcluded
|
||||
object B : Test
|
||||
object B : Test // Will not be included in class casts due to annotation ClassCastsExcluded
|
||||
object C : Test
|
||||
interface D : Test {
|
||||
object DD : D // Will not be included in class casts due to levelsToInclude
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user