tests: add comments in syntax_annotations2.nit
authorJean Privat <jean@pryen.org>
Mon, 26 Aug 2019 21:09:44 +0000 (17:09 -0400)
committerJean Privat <jean@pryen.org>
Mon, 26 Aug 2019 23:24:52 +0000 (19:24 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/syntax_annotations2.nit

index 18dec64..f9db84c 100644 (file)
@@ -29,7 +29,7 @@ class A
        super Toto is annot
        super Tata is annot, annot2
        super Titi is
-               annot
+               annot # comment
                annot2
        end
        fun foo1 is
@@ -38,7 +38,7 @@ class A
                var x: Toto@foo
        end
        fun foo2 is annot
-       fun foo3 is annot, annot2
+       fun foo3 is annot, annot2 # comment
        fun foo4 is
                annot
                annot2
@@ -56,3 +56,26 @@ interface Tata
 end
 interface Titi
 end
+
+fun baz1 is
+end
+fun baz2 is
+       # comment
+
+       # comment
+end
+fun baz3 is
+       # comment
+
+       # doc
+       annot #comment
+
+       # comment
+
+       # comment
+
+       annot2
+       # doc2 bis
+       annot2
+       # comment
+end