#1876·pkl

Incorrect string literal union default

Author: bioballCreated Sep 24, 2026Updated Sep 24, 2026

This code:

pkl
prop: "a" | *"a" | "b"

Produces:

pkl
prop = "b"

This code:

pkl
prop: "a" | *"a" 

Throws an java.lang.ArrayIndexOutOfBoundsException.