nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bench_engines: fix descriptions in `bench_nitc_options`
[nit.git]
/
tests
/
galerie.nit
diff --git
a/tests/galerie.nit
b/tests/galerie.nit
index
108b75e
..
3cbaa2b
100644
(file)
--- a/
tests/galerie.nit
+++ b/
tests/galerie.nit
@@
-19,23
+19,23
@@
import kernel
class Client
import kernel
class Client
- attr _credit: Int
+ var credit: Int
- meth regarde(t: Tableau)
+ fun regarde(t: Tableau)
do
if t.joli and _credit >= t.etiquette.prix then
achete(t)
end
end
do
if t.joli and _credit >= t.etiquette.prix then
achete(t)
end
end
- meth achete(t: Tableau) is abstract
+ fun achete(t: Tableau) is abstract
end
class Tableau
end
class Tableau
- meth joli: Bool is abstract
- meth etiquette: Etiquette is abstract
+ fun joli: Bool is abstract
+ fun etiquette: Etiquette is abstract
end
class Etiquette
end
class Etiquette
- meth prix: Int is abstract
+ fun prix: Int is abstract
end
end