make refined type printing more source compatible
See original GitHub issueCompiler version
3.0.1-RC1
Minimized example
class Bag extends reflect.Selectable
val m = new Bag { val f = 23; def g = 47; def h(i: Int): Int = i }
Output
in the repl the type printed has a type that is not source compatible
scala> val m = new Bag { val f = 23; def g = 47; def h(i: Int): Int = i; var i = 101; type N = Int }
val m: Bag{f: Int; g: => Int; h(i: Int): Int; i: Int; i_=(x$1: Int): Unit; N = Int} = anon$1@403364e9
Expectation
we annotate each refinement with if it is a type
, def
or val
scala> val m = new Bag { val f = 23; def g = 47; def h(i: Int): Int = i; var i = 101; type N = Int }
val m: Bag{val f: Int; def g: Int; def h(i: Int): Int; def i: Int; def i_=(x$1: Int): Unit; type N = Int} = anon$1@403364e9
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Refine Your 3D Print Preparations - Dummies.com
Following are some tips for making sure that your 3D printer is correctly set up and calibrated: Level the build platform and set...
Read more >Guide to Selective Laser Sintering (SLS) 3D Printing - Formlabs
Learn about selective laser sintering (SLS) 3D printers and how SLS 3D printing works, including different materials, applications, and workflow.
Read more >What Materials Are Used in the 3D Printing Process? | SPC
Out of all the raw materials for 3D printing in use today, plastic is the most common. Plastic is one of the most...
Read more >The Best Free 3D Printing Software of 2022 - All3DP
Check out our picks for the best free 3D printing software: slicers & 3D printer control, STL edit & repair software, and 3D...
Read more >Artillery Hornet 3D Printer Review: Pros and Cons, Features ...
Featuring wide material compatibility and printing at a maximum speed of 100 ... make printing safer, more consistent, and even benefit from ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This issue was picked for the Issue Spree No. 23 of 08 November 2022 which takes place in a week from now. @SethTisue, @jan-pieter will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here.
Hi, let me try it.