ImplicitEqualsOverDict.yqls 748 B

12345678910111213141516171819202122
  1. (
  2. (let config (DataSource 'config))
  3. (let res_sink (DataSink 'result))
  4. # Dict<Uint32, Int16>> -> Dict<Uint32, Uint64> (false)
  5. (let value (AsDict '((Uint32 '0) (Int16 '"-1"))))
  6. (let commonType (DictType (DataType 'Uint32) (DataType 'Uint64)))
  7. (let imlicitEqualsResult (Exists (StrictCast value commonType)))
  8. (let world (Write! world res_sink (Key) imlicitEqualsResult '('('type))))
  9. # Dict<Uint32, Uint16>> -> Dict<Uint32, Uint64> (true)
  10. (let value (AsDict '((Uint32 '0) (Uint16 '0))))
  11. (let commonType (DictType (DataType 'Uint32) (DataType 'Uint64)))
  12. (let imlicitEqualsResult (Exists (StrictCast value commonType)))
  13. (let world (Write! world res_sink (Key) imlicitEqualsResult '('('type))))
  14. (let world (Commit! world res_sink))
  15. (return world)
  16. )