sealed interface DbAddexpr class Label { } fun getFreshIdLabel(): Label { return Label() } fun foo(): Label { val x = getFreshIdLabel() return x } fun main1() { print(foo()) } class Foo { data class DC(val x: Int, val y: Int) fun foo() { val dc = DC(3, 4) print(dc.x) print(dc.y) } } fun main2() { Foo().foo() }