summaryrefslogtreecommitdiff
path: root/tests/structs
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-10-15 13:59:19 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-10-15 17:45:52 +0200
commitf3f466b1fc169c544451187f7741dcfe5a4e0cf8 (patch)
tree31a440712b0c8dae020744f429183487be80b8ca /tests/structs
parentd392d3ddbb4eeca9f98ab9b4749a9837dd9d6de0 (diff)
downloadvala-f3f466b1fc169c544451187f7741dcfe5a4e0cf8.tar.gz
tests: Add "wrongly named constructor" tests
Diffstat (limited to 'tests/structs')
-rw-r--r--tests/structs/constructor-wrong-name.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/structs/constructor-wrong-name.test b/tests/structs/constructor-wrong-name.test
new file mode 100644
index 000000000..95aa1c4ad
--- /dev/null
+++ b/tests/structs/constructor-wrong-name.test
@@ -0,0 +1,11 @@
+Invalid Code
+
+struct Foo {
+ public int i;
+
+ public Bar () {
+ }
+}
+
+void main () {
+}