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

Callback parameters can be dropped outside callback (e.g. receivedNumber) #5999

Open
microbit-matt-hillsdon opened this issue Oct 23, 2024 · 0 comments

Comments

@microbit-matt-hillsdon
Copy link
Contributor

Describe the bug
Callback parameters, e.g. a radio block's receivedNumber parameter, can be dropped outside callback in locations that can't compile.

To Reproduce

See also GIF below.

Steps to reproduce the behavior:

  1. Add a "on radio received (receivedNumber)" block
  2. Add a block to on start that can take a number, e.g. "show number"
  3. Drag the receivedNumber parameter into show number
  4. Unexpectedly the drop is allowed. Shortly after a warning icon shows with the compile error.

The drop isn't allowed in v6. My suspicion is that this isn't an intentional change.

Expected behavior
Behaviour as per v6, can't drop callback parameters in invalid locations.

Screenshots
Image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 129.0.6668.101 (Official Build) (arm64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants