Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

expandRelative does not work properly with quoted identifiers containing "." #2

Closed
liancheng opened this issue Apr 19, 2020 · 0 comments · Fixed by #11
Closed

expandRelative does not work properly with quoted identifiers containing "." #2

liancheng opened this issue Apr 19, 2020 · 0 comments · Fixed by #11
Labels
bug Something isn't working

Comments

@liancheng
Copy link
Owner

liancheng commented Apr 19, 2020

This issue is caused by scalacenter/scalafix#1097, which has already been fixed by scalacenter/scalafix#1100. Waiting for a new Scalafix release to address this one.

Affected version(s)

0.1.0

Reproduction

Re-enable the existing ExpandRelativeQuotedIdent test case reproduces this issue.

Test failure output:

###########> Diff       <###########

===========
=> Obtained
===========


package fix

import fix.ExpandRelativeQuotedIdent.`a.b`
import fix.ExpandRelativeQuotedIdent.a.b.c

object ExpandRelativeQuotedIdent {
  object `a.b` {
    object c
  }
}


=======
=> Diff
=======
--- obtained
+++ expected
@@ -3,3 +3,3 @@
 import fix.ExpandRelativeQuotedIdent.`a.b`
-import fix.ExpandRelativeQuotedIdent.a.b.c
+import fix.ExpandRelativeQuotedIdent.`a.b`.c
@liancheng liancheng added the bug Something isn't working label Apr 19, 2020
@liancheng liancheng linked a pull request Apr 22, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant