question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make refined type printing more source compatible

See original GitHub issue

Compiler 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
anatoliykmetyukcommented, Nov 1, 2022

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.

1reaction
yasuomaidanacommented, Jun 25, 2021

Hi, let me try it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found