metrics_base: Do not rely on the implicit fixing of type bounds
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 23 May 2017 04:13:38 +0000 (00:13 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 23 May 2017 04:14:11 +0000 (00:14 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/metrics/metrics_base.nit

index a2fb201..216e2b3 100644 (file)
@@ -235,7 +235,7 @@ end
 class IntMetric
        super Metric
 
-       redef type VAL: Int
+       redef type VAL: Int is fixed
        redef type RES: Counter[ELM]
 
        # `IntMetric` uses a Counter to store values in intern.