Understanding generics

Report a typo

You have the following snippet of code:

fun <T> someFunction(a: T): Int {
    return a
}

fun main() {
    println(someFunction(1))
}

What will it output?

Select one option from the list
___

Create a free account to access the full topic