type Bar:
foos Foo (0..*)
type Foo:
attr string (1..1)
func FuncFoo:
inputs:
newFoos Foo (0..*)
test boolean (1..1)
output:
bar Bar (1..1)
add bar -> foos:
if test
then newFoos
But this works fails with compilation issues due to error: incompatible types: java.util.List<capture#1 of ? extends com.rosetta.test.model.Foo> cannot be converted to java.util.List<com.rosetta.test.model.Foo>
type Bar:
foos Foo (0..*)
type Foo:
attr string (1..1)
func FuncFoo:
inputs:
newFoos Foo (0..*)
test boolean (1..1)
output:
bar Bar (1..1)
alias filteredFoos: newFoos
add bar -> foos:
if test
then filteredFoos
This compiles and runs successfully:
But this works fails with compilation issues due to
error: incompatible types: java.util.List<capture#1 of ? extends com.rosetta.test.model.Foo> cannot be converted to java.util.List<com.rosetta.test.model.Foo>