feat(overload): add errors caused by overloads
Add errors:
- AmbiguousNewDeclarationError:
Ambiguous new declarations
with the same parameter list but different return values
- ConflictMainError:
Multiple main functions
- MethodCallAmbiguousError:
Ambiguous method matches the method call
- NoMatchMethodError:
No method matches the call
- RedefinitionError:
Redefine the same function
- VarOverrideMethodError:
Try to override the method with a variable
Add CommonUtils:
- copyList: shallow copy a List
Showing
src/decaf/error/ConflictMainError.java
0 → 100644
src/decaf/error/NoMatchMethodError.java
0 → 100644
src/decaf/error/RedefinitionError.java
0 → 100644
src/decaf/error/VarOverrideMethodError.java
0 → 100644
src/decaf/utils/CommonUtils.java
0 → 100644
Please
register
or
sign in
to comment