what inspections or compiler options can one enable to avoid something like this happening where the aa & bb line is silently discarded due to a second '&&' missing at the end...
val matched = list.find {
aa && bb // accidentally deleted a second && at the end of line somehow
cc
}
this doesn't show any error or warning or even any hints in the IDE, it's a bug that really thrown me and I do worry about this happening again although I understand whats happening its a concerning silent discard .