nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add default values for some primitive type attributes.
[nit.git]
/
tests
/
example_time.nit
diff --git
a/tests/example_time.nit
b/tests/example_time.nit
index
f8825b0
..
ae694d6
100644
(file)
--- a/
tests/example_time.nit
+++ b/
tests/example_time.nit
@@
-20,7
+20,7
@@
# The Time class represents a quantity of time
class Time
# Internally, the quantity of time is stored in minutes
- readable writable attr _min: Int
+ readable writable attr _min: Int = 0
# The quantity ot time (in hours)
meth hour: Int