neversleepz
08/24/2017, 6:04 AMneversleepz
08/24/2017, 6:05 AMneversleepz
08/24/2017, 6:07 AMdata class A(val foo: String?)
data class B(val bar: String?) : A(foo)
error: function 'component1' generated for the data class conflicts with member of supertype 'A'
data class B(val bar: String?) : A(foo)
^
error: this type is final, so it cannot be inherited from
data class B(val bar: String?) : A(foo)
^
error: unresolved reference: foo
gildor
08/24/2017, 6:12 AMbamdmux
08/24/2017, 6:13 AMbamdmux
08/24/2017, 6:14 AMneversleepz
08/24/2017, 6:14 AMbamdmux
08/24/2017, 6:15 AMbamdmux
08/24/2017, 6:15 AMneversleepz
08/24/2017, 6:29 AMopen class C
data class A(val foo: String?) : C()
data class B(val bar: String?) : C()
neversleepz
08/24/2017, 6:30 AMopen class C(val foo: String?)
data class A(val foo: String?) : C()
data class B(val bar: String?) : A()
where B has both foo & bar propertiesbamdmux
08/24/2017, 6:33 AMneversleepz
08/24/2017, 6:51 AMCzar
08/24/2017, 8:48 AMdh44t
08/24/2017, 8:49 AMkarelpeeters
08/24/2017, 8:50 AMkarelpeeters
08/24/2017, 8:50 AMCzar
08/24/2017, 8:50 AMCzar
08/24/2017, 8:51 AMkarelpeeters
08/24/2017, 8:53 AMCzar
08/24/2017, 8:53 AMgildor
08/24/2017, 8:55 AMsrc/main/kotlin
dir only when I have a pure kotlin projectmatys
08/24/2017, 8:57 AMdh44t
08/24/2017, 8:57 AMinternal
dh44t
08/24/2017, 8:57 AMdh44t
08/24/2017, 9:04 AMCzar
08/24/2017, 9:31 AMbruce
08/24/2017, 4:57 PMval s = "Hello"
println(s::class)
but that doesn't tell me everything. Pointers appreciated.bolot
08/24/2017, 5:00 PMctrl-shift-P
will show you the expression’s typebolot
08/24/2017, 5:01 PMs
, hit the combo and it’ll show a tool tip with String