-
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not replace types when looking up fields from supertypes (#5248)
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package p20; | ||
public abstract class ClassT1 { | ||
ClassT3 classT3; | ||
|
||
public ClassT1(){ | ||
this.classT3 = new ClassT3(this); | ||
} | ||
|
||
void fun2(ClassT3 classT3){ | ||
} | ||
} |
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,10 @@ | ||
package p20; | ||
import p8.GlobalExecutor; | ||
|
||
public class ClassT2 extends ClassT1 { | ||
public void fun(){ | ||
GlobalExecutor.executeByCommon(() -> { | ||
fun2(classT3); | ||
}); | ||
} | ||
} |
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 p20; | ||
|
||
public class ClassT3 { | ||
final ClassT1 classT1; | ||
|
||
public ClassT3(ClassT1 classT1) { | ||
this.classT1 = classT1; | ||
} | ||
} |