12345678910111213141516171819 |
- # /* custom error: Failed to convert type: Variant<Int32,Int32,Int32> to Variant<Int32,Int32,Int32,Int32>*/
- (
- (let config (DataSource 'config))
- (let res_sink (DataSink 'result))
- (let origType (VariantType (TupleType (DataType 'Int32) (DataType 'Int32) (DataType 'Int32) (DataType 'Int32))))
- (let orig (Variant (Int32 '0) '1 origType))
- (let testcase (AsList orig))
- (let testType (VariantType (TupleType (DataType 'Int32) (DataType 'Int32) (DataType 'Int32))))
- (let test (Variant (Int32 '0) '1 testType))
- (let testcase (Append testcase test))
- (let world (Write! world res_sink (Key) testcase '('('type))))
- (let world (Commit! world res_sink))
- (return world)
- )
|