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

[dev.icinga.com #10760] Disallow lambda expressions where side-effect-free expressions are not allowed #3735

Closed
icinga-migration opened this issue Dec 1, 2015 · 4 comments
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10760

Created by tgelf on 2015-12-01 15:40:22 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-12-01 15:41:39 +00:00)
Target Version: 2.4.2
Last Update: 2015-12-08 14:38:43 +00:00 (in Redmine)

Icinga Version: 2.4.1
Backport?: Already backported
Include in Changelog: 1

It happened to me to define

a = { name => value }

instead of

a = { name = value }

In this case I'd like to see an error message as follows:

<3> => d = { 3 }
             ^
Value computed is not used.

Cheers,
Thomas

Changesets

2015-12-01 15:41:00 +00:00 by (unknown) 678a237

Turn '=>' lambda expressions into side-effect-free statements

fixes #10760

2015-12-08 14:31:09 +00:00 by (unknown) f3ea00b

Turn '=>' lambda expressions into side-effect-free statements

fixes #10760
@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-12-01 15:40:52 +00:00

  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.5.0

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-12-01 15:41:39 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 678a237.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-12-08 14:31:26 +00:00

  • Target Version changed from 2.5.0 to 2.4.2
  • Backport? changed from Not yet backported to Already backported

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-12-08 14:38:43 +00:00

  • Subject changed from Show error when defining meaningless constructs to Disallow lambda expressions where side-effect-free expressions are not allowed

@icinga-migration icinga-migration added bug Something isn't working area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.4.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant