Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly resolve imports for attribute types inherited from traits in
different files and even packages #145
- Loading branch information
1 parent
1dc4b2c
commit 6f83547
Showing
7 changed files
with
101 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.immutables.fixture.couse; | ||
|
||
import org.immutables.fixture.couse.sub.C; | ||
|
||
public interface Trait { | ||
B b(); | ||
|
||
C c(); | ||
} |
8 changes: 8 additions & 0 deletions
8
value-fixture/src/org/immutables/fixture/couse/sub2/AbstractZ.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.immutables.fixture.couse.sub2; | ||
|
||
import org.immutables.value.Value; | ||
import org.immutables.fixture.couse.Trait; | ||
|
||
// Test import resolution in generated type Z for attributes inherited from Trait | ||
@Value.Immutable | ||
public interface AbstractZ extends Trait {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@augustotravillio fix auto-formatter settings?