Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_div_by_zero.nit
1 import kernel
2
3 class A
4 fun /(i: Int): Int do return i
5 end
6
7 var i = 10
8 var f = 10.0
9 var a = new A
10 var z = 0
11
12 (i * 0).output
13 (i / 2).output
14 (f / 0.0).output
15 (a / 0).output
16 if false then (i / z).output
17 if false then (i / 0).output