nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee81858
)
string: fix SELFTYPE in String and Buffer
author
Jean Privat
<jean@pryen.org>
Fri, 30 Jan 2015 09:03:44 +0000
(16:03 +0700)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/lib/standard/string.nit
b/lib/standard/string.nit
index
505ae08
..
42f6b04
100644
(file)
--- a/
lib/standard/string.nit
+++ b/
lib/standard/string.nit
@@
-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