lib/android: clean up debug code from the UI module
[nit.git] / tests / base_at_cached.nit
index 3a01508..b6159a6 100644 (file)
@@ -17,7 +17,9 @@ import kernel
 class Base
        var foo: Int = 10
        fun -: Int do return foo + 20
-       fun bar: Int = -self + 40
+       fun bar: Int do return -self + 40
+       #alt1#fun fail is cached do end
+       #alt2#fun fail(i: Int): Int is cached do return i
 end
 
 class CMinus
@@ -32,6 +34,8 @@ class CBar
        redef fun bar is cached do return -self + 2
 end
 
+#alt3#fun fail: Int is cached do return 0
+
 fun test(b: Base)
 do
        b.foo.output