Slide 113
Slide 113 text
val nums : MutableList = mutableListOf(1, 2, 3)
val constructor = Nothing::class.java.getDeclaredConstructor()
constructor.isAccessible = true
val nothing = constructor.newInstance()
nums.add(nothing)
print(nums)
> [1, 2, 3, java.lang.Void@5e9d7b78]