Skip to content

[display] unused pattern variables should be marked as unused #7282

@Gama11

Description

@Gama11

Similar to #7267 - value should have a "this code has no effect" diagnostic so vshaxe can gray it out.

import haxe.ds.Option;

class Main {
	public static function main() {
		switch ((null:Option<Int>)) {
			case Some(value):
			case None:
		}
	}
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions