MeAmAnUsername / pie

Pipelines for Interactive Environments
Apache License 2.0
0 stars 0 forks source link

Error on transient input type #268

Open MeAmAnUsername opened 2 years ago

MeAmAnUsername commented 2 years ago

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

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`

Related issues None