Attempting to assign a new value to an immutable val variable.
Kotlin `val` defines read-only (immutable) local variables or properties. Attempting to assign a new value after initialization fails at compile time.
Trying to reassign `val` variables inside loops or setter logic instead of declaring mutable `var` variables.
1fun main() {2 val count = 103 count = 20 // Error: Val cannot be reassigned4}1fun main() {2 // Fix: Use 'var' for mutable variables3 var count = 104 count = 205 println("Count: $count")6}Simulate standard system builds to trigger compiler trace records and track memory crashes locally.
`val count` is read-only. Reassigning `count = 20` violates immutability contracts.