-
Notifications
You must be signed in to change notification settings - Fork 3
[BUG] Incorrect calculating a sequence of generated flows. #12
Copy link
Copy link
Closed
Description
Example
func Joo() error{
effe.BuildFlow(
effe.Step(doSomething),
)
return nil
}
func Boo() error {
effe.BuildFlow(
effe.Step(Joo),
)
return nil
}
func Foo() error {
effe.BuildFlow(
effe.Step(Boo),
effe.Step(Boo), // Error will here
)
return nil
}It triggers an error because the analyzer ignores dependencies for the component Boo because it has already added it to a sequence.
The sequence of dependencies will look like: [Boo, Joo, Boo]
effe: failed generate: function Boo has the incorrect format: return value should be a functionLines 76 to 78 in e47545c
| _, ok := a.visited[a.flowDecls[flowDeclIndex].flowFunc.Name.Name] | |
| if ok { | |
| continue |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels