diff --git a/NEWS.md b/NEWS.md index ac9e84c88b934..c08fe50152fe2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -170,4 +170,7 @@ External dependencies Tooling Improvements --------------------- +* Printing of `MethodError` and methods (such as from `methods(my_func)`) are now prettified and color consistent with printing of methods + in stacktraces. ([#45069]) + diff --git a/test/reflection.jl b/test/reflection.jl index e6387dce88477..5fd1be83ce01e 100644 --- a/test/reflection.jl +++ b/test/reflection.jl @@ -425,7 +425,7 @@ let li = typeof(fieldtype).name.mt.cache.func::Core.MethodInstance, mmime = repr("text/plain", li.def) @test lrepr == lmime == "MethodInstance for fieldtype(...)" - @test mrepr == mmime == "fieldtype(...)\n @ Core" + @test mrepr == mmime == "fieldtype(...)\n @ Core none:0" end