string: fix SELFTYPE in String and Buffer
authorJean Privat <jean@pryen.org>
Fri, 30 Jan 2015 09:03:44 +0000 (16:03 +0700)
committerJean Privat <jean@pryen.org>
Fri, 30 Jan 2015 09:03:44 +0000 (16:03 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/string.nit

index 505ae08..42f6b04 100644 (file)
@@ -877,7 +877,7 @@ end
 abstract class String
        super Text
 
-       redef type SELFTYPE: String
+       redef type SELFTYPE: String is fixed
 
        redef fun to_s do return self
 
@@ -1399,7 +1399,7 @@ end
 abstract class Buffer
        super Text
 
-       redef type SELFTYPE: Buffer
+       redef type SELFTYPE: Buffer is fixed
 
        # Specific implementations MUST set this to `true` in order to invalidate caches
        protected var is_dirty = true