FILE: notUselessCast_3.kt public sealed interface Square : R|kotlin/Any| { } public final object MARKED : R|Square| { private constructor(): R|MARKED| { super() } } public final object UNMARKED : R|Square| { private constructor(): R|UNMARKED| { super() } } public final fun test_1(): R|kotlin/Unit| { lval lines: R|kotlin/collections/List| = R|kotlin/collections/listOf|() lval cards: R|kotlin/collections/List>>| = R|/lines|.R|kotlin/collections/windowed|(Int(6)).R|kotlin/collections/map||, R|kotlin/collections/List>|>( = map@fun (card: R|kotlin/collections/List|): R|kotlin/collections/List>| { ^ R|/card|.R|kotlin/collections/map||>( = map@fun (line: R|kotlin/String|): R|kotlin/collections/MutableList| { ^ R|/line|.R|kotlin/text/map|( = map@fun (it: R|kotlin/Char|): R|Square| { ^ (Q|UNMARKED| as R|Square|) } ).R|kotlin/collections/toMutableList|() } ) } ) R|/cards|.R|SubstitutionOverride>|>|(Int(0)).R|SubstitutionOverride|>|(Int(0)).R|SubstitutionOverride|(Int(0), Q|MARKED|) Unit } public final fun test_2(): R|kotlin/Unit| { lval lines: R|kotlin/collections/List| = R|kotlin/collections/listOf|() lval cards: R|kotlin/collections/List>>| = R|/lines|.R|kotlin/collections/windowed|(Int(6)).R|kotlin/collections/map||, R|kotlin/collections/List>|>( = map@fun (card: R|kotlin/collections/List|): R|kotlin/collections/List>| { ^ R|/card|.R|kotlin/collections/map||>( = map@fun (line: R|kotlin/String|): R|kotlin/collections/MutableList| { ^ R|/line|.R|kotlin/text/map|( = map@fun (it: R|kotlin/Char|): R|UNMARKED| { ^ Q|UNMARKED| } ).R|kotlin/collections/toMutableList|() } ) } ) R|/cards|.R|SubstitutionOverride>|>|(Int(0)).R|SubstitutionOverride|>|(Int(0)).R|SubstitutionOverride#|(Int(0), Q|MARKED|) Unit }