Index: runtime/vm/class_finalizer.cc |
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc |
index 74304da0fc43ac6758dc81a3cfedbc06ceedf0fc..563682bae0683eeca10d5243cd1bb7ae38d22a91 100644 |
--- a/runtime/vm/class_finalizer.cc |
+++ b/runtime/vm/class_finalizer.cc |
@@ -2259,7 +2259,7 @@ void ClassFinalizer::ApplyMixinMembers(const Class& cls) { |
script, func.token_pos(), Report::AtLocation, |
Report::kError, Heap::kNew, |
"constructor '%s' is illegal in mixin class %s", |
- String::Handle(func.PrettyName()).ToCString(), |
+ String::Handle(func.UserVisibleName()).ToCString(), |
String::Handle(zone, mixin_cls.Name()).ToCString())); |
ReportErrors(error, cls, cls.token_pos(), |