mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 09:08:05 +00:00
Merge branch 'refs/heads/main' into testsuites
This commit is contained in:
commit
0abcebb329
@ -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