This code not compiling because you can pass nulla...
# announcements
g
This code not compiling because you can pass nullable type as generic:
Copy code
fun main(args: Array<String>) {
	foo<String?>("bar", null)
}

fun <T> foo(t: T, z: T?) { print(t?.hashCode()) }