nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0259f
)
lib/symbol: fixes old style inits
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 12 Dec 2014 20:11:55 +0000
(15:11 -0500)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 12 Jan 2015 08:18:19 +0000
(09:18 +0100)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/symbol.nit
patch
|
blob
|
history
diff --git
a/lib/symbol.nit
b/lib/symbol.nit
index
1e9fb67
..
b865017
100644
(file)
--- a/
lib/symbol.nit
+++ b/
lib/symbol.nit
@@
-32,8
+32,5
@@
end
# A symbol is a unique immutable string
class Symbol
private var string: String
- redef fun to_s do return _string.to_s
-
- # Only used by String::to_symbol
- private init(s: String) do _string = s
+ redef fun to_s do return string.to_s
end