-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for issue #366: check static compatibility when inferring expression
- Loading branch information
1 parent
c6e27d1
commit dce1711
Showing
6 changed files
with
112 additions
and
47 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
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
21 changes: 11 additions & 10 deletions
21
...test/org.codehaus.groovy.eclipse.refactoring.test/resources/RenameField/test9/in/A.groovy
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package p | ||
|
||
class A { | ||
public static def f | ||
static def s() { | ||
f = A.f | ||
} | ||
} | ||
|
||
class B extends A { | ||
def f | ||
void s() { | ||
public def f | ||
void m() { | ||
f = A.f | ||
f = super.f | ||
} | ||
static s2() { | ||
static def s2() { | ||
f = A.f | ||
} | ||
} | ||
|
||
class A { | ||
static f = 7 | ||
static s() { | ||
f = A.f | ||
} | ||
} |
21 changes: 11 additions & 10 deletions
21
...est/org.codehaus.groovy.eclipse.refactoring.test/resources/RenameField/test9/out/A.groovy
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package p | ||
|
||
class A { | ||
public static def g | ||
static def s() { | ||
g = A.g | ||
} | ||
} | ||
|
||
class B extends A { | ||
def f | ||
void s() { | ||
public def f | ||
void m() { | ||
f = A.g | ||
f = super.g | ||
} | ||
static s2() { | ||
static def s2() { | ||
f = A.g | ||
} | ||
} | ||
|
||
class A { | ||
static g = 7 | ||
static s() { | ||
g = A.g | ||
} | ||
} |