summaryrefslogtreecommitdiffstats
path: root/test cases/vala/18 vapi consumed twice/app.vala
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/vala/18 vapi consumed twice/app.vala')
-rw-r--r--test cases/vala/18 vapi consumed twice/app.vala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/vala/18 vapi consumed twice/app.vala b/test cases/vala/18 vapi consumed twice/app.vala
new file mode 100644
index 0000000..cd94a42
--- /dev/null
+++ b/test cases/vala/18 vapi consumed twice/app.vala
@@ -0,0 +1,11 @@
+namespace App {
+ public static int main(string[] args) {
+ var person = new Person();
+ print("Favorite beer of \"%s\" is %s\n", person.name, person.favorite_beer.flavor);
+
+ var beer = new Beer("tasty");
+ print("This beer is %s\n", beer.flavor);
+
+ return 0;
+ }
+}