nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Revamp the C string to Nit string services to put forward the safest alternative
[nit.git]
/
tests
/
example_point.nit
diff --git
a/tests/example_point.nit
b/tests/example_point.nit
index
2ad57c5
..
a7b89ea
100644
(file)
--- a/
tests/example_point.nit
+++ b/
tests/example_point.nit
@@
-16,8
+16,8
@@
class Point
private
class Point
private
- var x: Int # Abscisse
- var y: Int # Ordonnée
+ var x: Int = 0 # Abscisse
+ var y: Int = 0 # Ordonnée
# Change la position d'un point
fun moveto(x: Int, y: Int)
# Change la position d'un point
fun moveto(x: Int, y: Int)
@@
-38,11
+38,6
@@
private
end
end
- init
- do
- moveto(0, 0)
- end
-
init at(x: Int, y: Int)
do
moveto(x, y)
init at(x: Int, y: Int)
do
moveto(x, y)