X-Git-Url: http://nitlanguage.org diff --git a/tests/test_paire.nit b/tests/test_paire.nit index f567201..f393851 100644 --- a/tests/test_paire.nit +++ b/tests/test_paire.nit @@ -33,8 +33,8 @@ class Pair[F, S] return "{first}:{_second}" end private - var _first: F - var _second: S + var first: F + var second: S init(f: F, s: S) do @@ -42,7 +42,7 @@ private end end -class Pair[E: Comparable, E: Comparable] +class Pair[E: Comparable, F: Comparable] fun >(p: Pair[Comparable, Comparable]): Bool do @@ -51,7 +51,7 @@ class Pair[E: Comparable, E: Comparable] end end -class Pair[E: Int, E: Int] +class Pair[E: Int, F: Int] fun sum: Int do