commit | 92713ff617afa87a68dce9249fa7228c04573d8b | [log] [tgz] |
---|---|---|
author | Nick Korostelev <nkorsote@google.com> | Thu May 24 11:55:40 2018 -0700 |
committer | Nick Korostelev <nkorsote@google.com> | Fri May 25 14:38:09 2018 -0700 |
tree | 538d39304577e6e8029ddb01febae7824fceed72 | |
parent | 89a231ac0ebd0a4faeb7f167201fcf8c306ed9ca [diff] |
Fix Dart 2 related issue for strong types and default values When a proto field is not set this porobuf lib is attempting to get a default value. If it happens to be a collection like a List the type would be List<dynamic> so when using Dart 2, at runtime you might get a casting exception: "type 'List<dynamic>' is not a subtype of type 'List<int>