–– Pkl Error ––
Expected value of type `Boolean|Map<Int|List<Int>, String|Set<String>>`, but got a different `Map`.
Value: Map(1, "foo", 2, Set("foo", "bar"), List(1, 2, 3), Set("bar", 4))

x | a: Boolean|Map<Int|List<Int>, String|Set<String>>
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at unionTypesErrorNested#X.a (file:///$snippetsDir/input/classes/unionTypesErrorNested.pkl)

* Value is not of type `Map<Int|List<Int>, String|Set<String>>` because:
  Expected value of type `String|Set<String>`, but got a different `Set`.
  Value: Set("bar", 4)

  * Value is not of type `Set<String>` because:
    Expected value of type `String`, but got type `Int`.
    Value: 4

x | a = Map(
        ^^^^
at unionTypesErrorNested#res1.a (file:///$snippetsDir/input/classes/unionTypesErrorNested.pkl)

xxx | text = renderer.renderDocument(value)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (pkl:base)
