We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
Null<LS2Fill>
The question is what should semantically happen if the field actually is null. Or should the fill field not be nullable after all?
The text was updated successfully, but these errors were encountered:
temp fix for null pattern (see #13)
428ac45
ncannasse
No branches or pull requests
https://github.com/HaxeFoundation/format/blob/master/format/swf/Writer.hx#L547
https://github.com/HaxeFoundation/format/blob/master/format/swf/Writer.hx#L570
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?
The text was updated successfully, but these errors were encountered: