nitc/toolcontext: make error_count writable
authorJean Privat <jean@pryen.org>
Fri, 21 Apr 2017 18:59:13 +0000 (14:59 -0400)
committerJean Privat <jean@pryen.org>
Fri, 21 Apr 2017 18:59:13 +0000 (14:59 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/toolcontext.nit

index 4fd3fa6..0797723 100644 (file)
@@ -143,7 +143,7 @@ end
 # Global context for tools
 class ToolContext
        # Number of errors
-       var error_count: Int = 0
+       var error_count: Int = 0 is writable
 
        # Number of warnings
        var warning_count: Int = 0