diff options
Diffstat (limited to 'src/semanticanalysis/SemanticError.java')
-rw-r--r-- | src/semanticanalysis/SemanticError.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/semanticanalysis/SemanticError.java b/src/semanticanalysis/SemanticError.java index 745e3fb..ac2dc4c 100644 --- a/src/semanticanalysis/SemanticError.java +++ b/src/semanticanalysis/SemanticError.java @@ -4,12 +4,14 @@ package semanticanalysis; * Class respresents a semantic error. */ public class SemanticError { - private String msg; + + private final String msg; public SemanticError(String msg) { this.msg = msg; } + @Override public String toString() { return msg; } |