Alan Evans
01/23/2019, 4:09 PMMarc Knaup
01/23/2019, 4:10 PMpotter
01/23/2019, 4:19 PMserebit
01/23/2019, 4:19 PMMarc Knaup
01/23/2019, 4:24 PMMarc Knaup
01/23/2019, 4:25 PMfred.deschenes
01/23/2019, 4:26 PMRobinVdB
11/02/2019, 5:07 PMwilliam
11/02/2019, 8:32 PMfoo.fizz().let { error ->
if (error.isNotNone()) {
// log error and maybe worse if the error is bad
}
}
Exerosis
11/05/2019, 1:30 PMDave
11/05/2019, 2:28 PMIaroslav Postovalov
11/05/2019, 5:14 PMSujit
11/05/2019, 6:31 PMclass TestData {
val listData: List<@CustomAnnotation Int>? = null
}
fun checkAnnotation() {
val member = TestData::class.memberProperties.firstOrNull { it.name == "listData" }
member ?: return
val type = member.returnType.arguments.firstOrNull()?.type
}
From that point on, I really have no idea what to do. In debugger, i can see type
member for KTypeImpl
, that gives the annotations
, but seems like I cannot access that? 🤔Maku Mazakpe
11/05/2019, 8:46 PMRaymond Barlow
11/07/2019, 4:41 AMJoshy Josh
11/07/2019, 6:10 AMvineethraj49
11/07/2019, 6:12 AMJoshy Josh
11/07/2019, 6:13 AMJoshy Josh
11/07/2019, 6:13 AMmagnumrocha
11/07/2019, 11:30 AMFile(fileName).forEachLine { Log.d(TAG, it) }
magnumrocha
11/07/2019, 11:30 AMUzi Landsmann
11/07/2019, 3:17 PMLeoColman
11/07/2019, 3:34 PMfun <T = Any> foo(...)
doesn't quite workLeoColman
11/07/2019, 3:34 PMLeoColman
11/07/2019, 3:36 PMJohn
11/08/2019, 12:14 PM*arrayListOf(1,2,3)
?Ky Leggiero
11/08/2019, 5:33 PM