daml/language-support
Moritz Kiefer 4ac0a47c81
Fix typing of nested decoders in daml2js (#6729)
I accidentally broke this when I added the types (very sorry about
that). Unfortunately while the tests should actually have caught this,
they didn’t because they are also broken. The `&&` results in bash
assuming the exit code is handled and `set -e` doesn’t kick in so
despite an error things proceeded just fine.

The change turns
```
  Add2: (<a_a1Ag>(a_a1Ag: damlTypes.Serializable<a_a1Ag>) => damlTypes.Serializable<Expr2.Add2>);
```
into
```
  Add2: (<a_a1Ag>(a_a1Ag: damlTypes.Serializable<a_a1Ag>) => damlTypes.Serializable<Expr2.Add2<a_a1Ag>>);
```

which is obviuosly what we want and also fixes the test. I did verify
that the tests fail afterwards without the change to daml2js.

changelog_begin
changelog_end
2020-07-14 19:22:55 +00:00
..
codegen-common set scalac -Xsource:2.13 -Ypartial-unification globally (#6469) 2020-06-24 16:51:24 -04:00
codegen-main Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
hs/bindings Make Bearer prefix optional in Haskell ledger bindings (#5858) 2020-05-06 12:09:34 +02:00
java set scalac -Xsource:2.13 -Ypartial-unification globally (#6469) 2020-06-24 16:51:24 -04:00
scala include contract keys in the Scala codegen output plan when using --root (#6696) 2020-07-10 15:26:51 -04:00
ts Fix typing of nested decoders in daml2js (#6729) 2020-07-14 19:22:55 +00:00