diff --git a/src/typinferenz/assumptions/ConstructorAssumption.java b/src/typinferenz/assumptions/ConstructorAssumption.java new file mode 100644 index 000000000..934af3d8c --- /dev/null +++ b/src/typinferenz/assumptions/ConstructorAssumption.java @@ -0,0 +1,14 @@ +package typinferenz.assumptions; + +import mycompiler.myclass.Class; +import mycompiler.myclass.Field; +import mycompiler.myclass.Method; + +public class ConstructorAssumption extends MethodAssumption{ + + public ConstructorAssumption(Method assumedMethod, Class parentClass) { + super(assumedMethod, parentClass); + } + + +} diff --git a/src/typinferenz/exceptions/ParserException.java b/src/typinferenz/exceptions/ParserException.java new file mode 100644 index 000000000..70102c11f --- /dev/null +++ b/src/typinferenz/exceptions/ParserException.java @@ -0,0 +1,16 @@ +package typinferenz.exceptions; + +import mycompiler.myparser.JavaParser.yyException; + + +public class ParserException extends TypinferenzException { + + public ParserException(String message) { + super(message); + } + + public ParserException(yyException exc){ + super("Parserfehler"); + } + +} diff --git a/test/plugindevelopment/OverloadingInsertTest.jav b/test/plugindevelopment/OverloadingInsertTest.jav new file mode 100644 index 000000000..5952fe38d --- /dev/null +++ b/test/plugindevelopment/OverloadingInsertTest.jav @@ -0,0 +1,20 @@ +class OverloadingInsertTest{ + + var; + + overload(){ + return this; + } +} + +class Overloading2{ + var2; + + methode(){ + return var2.overload(); + } + + overload(){ + return this; + } +} \ No newline at end of file