mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 09:08:05 +00:00
Merge branch 'main' of https://github.com/JonathanFleischmann/CompilerULTIMATE
This commit is contained in:
commit
d9cf560331
@ -116,7 +116,7 @@ public class TypedFieldVarAccess implements TypedExpression {
|
|||||||
TypedClass currentClass = typedProgram.getCurrentClass();
|
TypedClass currentClass = typedProgram.getCurrentClass();
|
||||||
|
|
||||||
if (currentClass.isThereField(name)) {
|
if (currentClass.isThereField(name)) {
|
||||||
type = currentClass.getFieldType(name);
|
throw new RuntimeException("Field Variable " + name + " should be used with `this´");
|
||||||
} else if (currentClass.isMethodOfCurrentClass(name)) {
|
} else if (currentClass.isMethodOfCurrentClass(name)) {
|
||||||
type = currentClass.getMethodType(name);
|
type = currentClass.getMethodType(name);
|
||||||
} else if (recursiveOwnerChain instanceof TypedFieldVarAccess typedFieldVarAccess) {
|
} else if (recursiveOwnerChain instanceof TypedFieldVarAccess typedFieldVarAccess) {
|
||||||
|
Loading…
Reference in New Issue
Block a user