You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final someMessage =SomeMessage(optionalString:null);
someMessage.optionalString =null; // error
It throwed an error:
"
A value of type 'Null' can't be assigned to a variable of type 'String'.
Try changing the type of the variable, or casting the right-hand type to 'String'
"
I think it should be consistent between initialization and reassign value for message attributes.
The text was updated successfully, but these errors were encountered:
thanhdatvo
changed the title
[Bug][proto3] assign null value for optional string
[Bug][proto3] inconsistent behavior of assign null value for optional string
Jan 26, 2023
thanhdatvo
changed the title
[Bug][proto3] inconsistent behavior of assign null value for optional string
[Bug][proto3] inconsistent behavior of assigning null value for optional string
Jan 26, 2023
When I use this message in dart code like this:
It throwed an error:
"
A value of type 'Null' can't be assigned to a variable of type 'String'.
Try changing the type of the variable, or casting the right-hand type to 'String'
"
I think it should be consistent between initialization and reassign value for message attributes.
The text was updated successfully, but these errors were encountered: