✓
Passing Passing: the compiler rejects this program as expected.
Code
// PINS: a comma in an enum tag list refuses — tags separate on lines;
// the comma is a wart, not a separator.
import std/types
std/types:enum(ThreatLevel) {
low,
high
}
Actual compiler output
error[KORU173]: std/types:enum(ThreatLevel): tag line 'low,' carries a ',' — tags separate on lines, not commas
--> tests/regression/600_STDLIB/665_PROTO/665_025_enum_tag_comma_refused/input.k:5:1Must contain:
error[KORU173]Flows
flow ~enum click a branch to expand · @labels scroll to their anchor
enum (ThreatLevel, source: low,
high)
Test Configuration
MUST_ERROR