Assignment for primitive field of deftype throws VerifyError if RHS expression has different primitive type

Description

Just as the summary says, assignment for a primitive field of deftype throws a VerifyError or an exception from ASM if the RHS expression has a different primitive type.

Repro

Cause
Compiler emits a putfield instruction without either checking the type of the RHS expression or inserting implicit coercion for it into the appropriate primitive type.

Environment

None

Assignee

Unassigned

Reporter

Shogo Ohta

Labels

Approval

None

Patch

None

Affects versions

Priority

Major
Configure