nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: typing: new warning `useless-truism` to catch trainees.
[nit.git]
/
tests
/
base_output_class_name.nit
diff --git
a/tests/base_output_class_name.nit
b/tests/base_output_class_name.nit
index
d51f048
..
f5fae31
100644
(file)
--- a/
tests/base_output_class_name.nit
+++ b/
tests/base_output_class_name.nit
@@
-14,11
+14,13
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
+import kernel
+
class Test end
class MyArray[E] end
class Toto
class Test end
class MyArray[E] end
class Toto
- redef fun output_class_name do print "TotoToto"
+ redef fun output_class_name do '0'.output
end
var test1 = new Test
end
var test1 = new Test
@@
-26,9
+28,10
@@
var test2: Object = new Test
var test3 = new MyArray[Int]
var test4 = new Toto
var test3 = new MyArray[Int]
var test4 = new Toto
-"".output_class_name
+'1'.output_class_name
1.output_class_name
test1.output_class_name
test2.output_class_name
test3.output_class_name
test4.output_class_name
1.output_class_name
test1.output_class_name
test2.output_class_name
test3.output_class_name
test4.output_class_name
+'\n'.output