nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
metamodel: rename 'universal' to 'enum'
[nit.git]
/
tests
/
base_attr_isset.nit
diff --git
a/tests/base_attr_isset.nit
b/tests/base_attr_isset.nit
index
2b8aed9
..
bc5ab98
100644
(file)
--- a/
tests/base_attr_isset.nit
+++ b/
tests/base_attr_isset.nit
@@
-19,12
+19,12
@@
import end
interface Object
end
interface Object
end
-universal Int
+enum Int
fun output is intern
fun +(o: Int): Int is intern
end
fun output is intern
fun +(o: Int): Int is intern
end
-universal Bool
+enum Bool
fun output is intern
end
fun output is intern
end
@@
-55,15
+55,15
@@
class Foo
show(1)
_a1 = new Integer(1)
show(2)
show(1)
_a1 = new Integer(1)
show(2)
- _a2 = new Integer(_a1.val + 1)
+ _a2 = new Integer(_a1.val + 1) #!alt3# #!alt4#
show(3)
end
show(3)
end
-
+ #alt3#
init nop do end
end
class Bar
init nop do end
end
class Bar
-special Foo
+ super Foo
var _a3: Integer#!alt1# #!alt2#
#alt1#var _a3: Integer = new Integer(9000)
#alt2#var _a3: nullable Integer
var _a3: Integer#!alt1# #!alt2#
#alt1#var _a3: Integer = new Integer(9000)
#alt2#var _a3: nullable Integer
@@
-93,6
+93,11
@@
special Foo
end
end
end
end
+class Baz
+ super Foo
+end
+
+#alt4# var b2 = new Baz
var f = new Foo
var b = new Bar
f.run
var f = new Foo
var b = new Bar
f.run