niti: make `catch_count` writable
authorJean Privat <jean@pryen.org>
Mon, 24 Apr 2017 20:00:24 +0000 (16:00 -0400)
committerJean Privat <jean@pryen.org>
Tue, 25 Apr 2017 16:46:55 +0000 (12:46 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/interpreter/naive_interpreter.nit

index 7b22a58..eced30f 100644 (file)
@@ -119,7 +119,7 @@ class NaiveInterpreter
        var escapemark: nullable EscapeMark = null
 
        # The count of `catch` blocs that have been encountered and can catch an abort
        var escapemark: nullable EscapeMark = null
 
        # The count of `catch` blocs that have been encountered and can catch an abort
-       var catch_count = 0
+       var catch_count = 0 is writable
 
        # The last error thrown on abort/runtime error where catch_count > 0
        var last_error: nullable FatalError = null
 
        # The last error thrown on abort/runtime error where catch_count > 0
        var last_error: nullable FatalError = null