Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change detection is not propagated transitively when output type in rule changes #707

Open
SimonCockx opened this issue Dec 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SimonCockx
Copy link
Contributor

File 1:

func Foo:
    output: result int (1..1)

File 2:

reporting rule Rule from string:
    Foo()

File 3:

func Bar:
    output: result int (1..1)

    set result: Rule("")

Now change the output type of Foo from int to string:

func Foo:
    output: result string (1..1)

There should be a type error in the Bar function, since Rule returns a string where an integer is expected. However, since validation is not run again on File 3, this is not the case.

@SimonCockx SimonCockx added the bug Something isn't working label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant