Row type fix
This commit is contained in:
parent
059ade7973
commit
87326d05c7
@ -61,5 +61,5 @@ interface Row<out T : Any> {
|
||||
|
||||
fun <C : Any, T : C> Row<C>.getValue(column: String, type: KClass<out T>): T? = type.cast(getValue(column))
|
||||
|
||||
inline operator fun <reified T : Any> Row<*>.get(column: String): T? = T::class.cast(getValue(column))
|
||||
inline operator fun <reified T : Any> Row<T>.get(column: String): T? = T::class.cast(getValue(column))
|
||||
operator fun <C : Any, T : C> Row<C>.get(column: ColumnHeader<T>): T? = getValue(column.name, column.type)
|
Loading…
Reference in New Issue
Block a user