X-Git-Url: http://nitlanguage.org diff --git a/tests/test_boxing.nit b/tests/test_boxing.nit index 6501016..8683131 100644 --- a/tests/test_boxing.nit +++ b/tests/test_boxing.nit @@ -18,8 +18,8 @@ # By Flop class Gene[T] - readable attr _a_ : T - meth a: T + readable var _a_ : T + fun a: T do return _a_ end @@ -27,8 +27,9 @@ class Gene[T] init do end end -class GeneBool special Gene[Bool] - meth a=(b: Bool) +class GeneBool + super Gene[Bool] + fun a=(b: Bool) do _a_ = b end