Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Dec 16, 2023
1 parent d3ff0cc commit 552516c
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,31 @@ class A {
void compareFieldAccess() {
assertExpressionsEqual(
"""
class A {
class T {
int n = 1;
int a = A.this.n;
int b = A.this.n;
int a = T.this.n;
int b = T.this.n;
}
"""
);
assertExpressionsEqual(
"""
class A {
class T {
int n = 1;
int a = A.this.n;
int a = T.this.n;
int b = this.n;
}
"""
);
assertExpressionsEqual(
"""
class T {
int n = 1;
int a = T.this.n;
int b = n;
}
"""
);
}

private void assertEqualToSelf(@Language("java") String a) {
Expand Down

0 comments on commit 552516c

Please sign in to comment.