nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
online_ide: imports nitc (symlinked from contrib)
[nit.git]
/
tests
/
base_if_expr.nit
diff --git
a/tests/base_if_expr.nit
b/tests/base_if_expr.nit
index
9a5e117
..
d9ac92d
100644
(file)
--- a/
tests/base_if_expr.nit
+++ b/
tests/base_if_expr.nit
@@
-18,10
+18,10
@@
import kernel
class A
init do end
class A
init do end
- redef meth output do 'A'.output
+ redef fun output do 'A'.output
end
end
-meth max(a: Int, b: Int): Int do return if a > b then a else b
+fun max(a: Int, b: Int): Int do return if a > b then a else b
var x = if true then 1 else 0
x.output
var x = if true then 1 else 0
x.output