Skip to content

Conversation

ChrisDodd
Copy link
Contributor

When actions have default args, they should not be applied in the action list of a table, as the control plane may supply non-default values for these args.

@fruffy
Copy link
Collaborator

fruffy commented Feb 19, 2024

Could you add a test as an example of where this can happen?

@ChrisDodd ChrisDodd force-pushed the cdodd-defaultargs branch 2 times, most recently from 95f81da to 5ed7ca8 Compare February 19, 2024 06:50
@ChrisDodd
Copy link
Contributor Author

I added a testcase that triggers the BUG_CHECK I was seeing before with the previous code, but doesn't cover all the cases that should work with default args (because they still don't work).

@ChrisDodd ChrisDodd merged commit aea22be into p4lang:main Feb 19, 2024
@ChrisDodd ChrisDodd deleted the cdodd-defaultargs branch January 7, 2025 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants