Unmatched null pattern
@ncannasse is already working on this.
Since Apr 23, 2014.
Assessment
This issue has not been assessed yet.
Description
https://github.com/HaxeFoundation/format/blob/master/format/swf/Writer.hx#L547
bits.writeBit(switch(data.fill) {
case LS2FColor(_): false;
case LS2FStyle(_): true;
});
https://github.com/HaxeFoundation/format/blob/master/format/swf/Writer.hx#L570
switch(data.fill) {
case LS2FColor(color): writeRGBA(color);
case LS2FStyle(style): writeFillStyle(ver, style);
}
The error is correct because LS2Data defines fill to be Null<LS2Fill> and Haxe now considers explicit null types for exhaustiveness.
The question is what should semantically happen if the field actually is null. Or should the fill field not be nullable after all?
- Dominant language
- Haxe
- Stars
- 141
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HaxeFoundation/format
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
HaxeFoundation/format#111 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
HaxeFoundation/format#107 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
HaxeFoundation/format#102 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
HaxeFoundation/format#100 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
HaxeFoundation/format#99 · 1 comment ·