Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workaround for printing Tuple1 #5778

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

kasiaMarek
Copy link
Contributor

resolves: #5754

@@ -282,11 +282,13 @@ class MetalsGlobal(
val result = tpe match {
case TypeRef(pre, sym, args) =>
def shortSymbol = {
// workaround for Tuple1 (which is incorrectly printed by Scala 2 compiler)
def isTuple1 = sym.fullName == "scala.Tuple1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def isTuple1 = sym.fullName == "scala.Tuple1"
def isTuple1 = sym == definitions.TupleClass(1)

?

@kasiaMarek kasiaMarek merged commit 728623b into scalameta:main Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement missing members incorrectly renders Tuple1
3 participants