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

Renames and wildcards should not be separated if they appear together #150

Closed
liancheng opened this issue Jan 14, 2021 · 0 comments · Fixed by #151
Closed

Renames and wildcards should not be separated if they appear together #150

liancheng opened this issue Jan 14, 2021 · 0 comments · Fixed by #151
Labels
bug Something isn't working

Comments

@liancheng
Copy link
Owner

When groupedImports is set to Explode, renames and wildcards should not be separated. Otherwise, the semantics change. Here's an example:

import java.util.{Deque => D, _}

val d0: D[Int] = ???
val d1: Deque[Int] = ??? // Should fail compilation

Currently, we explode them into two imports and get:

import java.util._
import java.util.{Deque => D}

val d0: D[Int] = ???
val d1: Deque[Int] = ??? // Now it compiles
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