–– Pkl Error ––
Expected value of type `Alias1|Alias2`, but got a different `Dynamic`.
Value: new Dynamic {}

x | res1: Alias1|Alias2 = new Dynamic { }
          ^^^^^^^^^^^^^
at unionTypesErrorMultipleAliases#res1 (file:///$snippetsDir/input/classes/unionTypesErrorMultipleAliases.pkl)

* Value is not of type `Alias1` because:
  Expected value of type `String`, but got type `Dynamic`.
  Value: new Dynamic {}

* Value is not of type `Alias2` because:
  Expected value of type `Int`, but got type `Dynamic`.
  Value: new Dynamic {}

x | res1: Alias1|Alias2 = new Dynamic { }
                          ^^^^^^^^^^^^^^^
at unionTypesErrorMultipleAliases#res1 (file:///$snippetsDir/input/classes/unionTypesErrorMultipleAliases.pkl)

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

xxx | if (renderer is BytesRenderer) renderer.renderDocument(value) else text.encodeToBytes("UTF-8")
                                                                         ^^^^
at pkl.base#Module.output.bytes (pkl:base)
