| Index: runtime/vm/code_generator.cc
|
| ===================================================================
|
| --- runtime/vm/code_generator.cc (revision 5480)
|
| +++ runtime/vm/code_generator.cc (working copy)
|
| @@ -467,7 +467,13 @@
|
| }
|
| if (!is_instance_of) {
|
| const Type& src_type = Type::Handle(src_instance.GetType());
|
| - const String& src_type_name = String::Handle(src_type.Name());
|
| + String& src_type_name = String::Handle();
|
| + if (src_instance.IsInteger()) {
|
| + // Hide implementation detail (Smi, Mint, Bigint).
|
| + src_type_name = String::NewSymbol("int");
|
| + } else {
|
| + src_type_name = src_type.Name();
|
| + }
|
| String& dst_type_name = String::Handle();
|
| if (!dst_type.IsInstantiated()) {
|
| // Instantiate dst_type before reporting the error.
|
|
|