Skip to content

False positive for #smallLintTempsReadBeforeWritten when using #doWhileTrue: #79

@LinqLover

Description

@LinqLover

The following method is falsely detected by the #smallLintTempsReadBeforeWritten check:

someMethod

	| x |
	[x := 1] doWhileTrue: [x <> 1].

Additional context
Fixing this issue would require do create a whitelist of BlockClosure messages that are guaranteed to evaluate the block before the argument blocks. Not sure whether this might be too complex ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions