Summary
Transient types that are used as parameter for a (foreign) task should give an error.
Todo
[ ] Add tests
[ ] Error when used as parameter for task
[ ] No error when used as parameter for function
[ ] No error when used as parameter for method
[ ] Implement
[ ] Add to documentation
Reason
Using transient types as an input type is not allowed, so it should give an error.
Example
transient data Berry = foreign java org.example.Berry {}
func testTransientInput(berry: Berry) -> unit = unit
Should give an error on Berry in line 2: "Cannot use a transient data type as input for a task. Use a Java function instead, or make Berry Serializable`
Summary Transient types that are used as parameter for a (foreign) task should give an error.
Todo
Reason Using transient types as an input type is not allowed, so it should give an error.
Example
Should give an error on
Berry
in line 2: "Cannot use a transient data type as input for a task. Use a Java function instead, or make Berry Serializable`Related issues None