016 proto field bound twice default door

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU173]: std/proto(Dup): field 'hp' is bound twice — a proto entry takes each field name once
  --> tests/regression/600_STDLIB/665_PROTO/665_016_proto_field_bound_twice_default_door/input.k:9:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Dup, source: hp: f32 hp: f32)
flow ~new click a branch to expand · @labels scroll to their anchor
new (Dup)

Test Configuration

MUST_ERROR