scope: refuse `&x` where x is a local variable
[nit.git] / tests / bench_netsim.nit
index accbb45..6531814 100644 (file)
@@ -31,8 +31,7 @@ class WakeUpNode
        do
                _scheduler.add_event(self, d)
        end
-       var scheduler: Scheduler
-       init do end
+       var scheduler: Scheduler is noinit
 end
 
 class NodeSource
@@ -268,11 +267,11 @@ e1.attach(a1)
 b1.start
 b2.start
 
-var nb = 100000
+var nb = 10
 if not args.is_empty then
        nb = args.first.to_i
 end
 
-s.run_for(nb)
+s.run_for(1 << nb)
 print(c1.count)