im trying to learn kotlin by building collection t...
# announcements
e
im trying to learn kotlin by building collection types and looking at the compiled output, and noticed something interesting that I didn't expect. https://gist.github.com/dcapwell/445c62d02e1089b6d87158a9801002d6 When I look at the recSize compiled code, I see that it has a call to 3: invokestatic #35 // Method kotlin/jvm/internal/Intrinsics.checkParameterIsNotNull:(Ljava/lang/Object;Ljava/lang/String;)V. My class doesn't support nulls so was wondering why kotlin inserts this check