Skip to content

Instantly share code, notes, and snippets.

View ikolomiets's full-sized avatar

Igor Kolomiets ikolomiets

View GitHub Profile
@ikolomiets
ikolomiets / ThrowUndefinedForReified.kt
Created January 2, 2022 04:34
Demo of "This function has a reified type parameter and thus can only be inlined at compilation time, not called directly" Ktor error
@Serializable
data class Age(val value: Int)
@Serializable
data class Update<T>(val old: T, val new: T)
fun main() {
embeddedServer(Netty, port = 8080) {
install(ContentNegotiation) {
json()

Keybase proof

I hereby claim:

  • I am ikolomiets on github.
  • I am ikolomiets (https://keybase.io/ikolomiets) on keybase.
  • I have a public key ASA3mUnU-oGQHBYtIfISEj13PNwWDDLnZaDMiRdQaHWHNAo

To claim this, I am signing this object: