summaryrefslogtreecommitdiff
path: root/tests/annotations
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-05-17 11:37:56 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-06-19 20:34:44 +0200
commitcdcf96cbfb19d049758ae373284adee6b0ba07cb (patch)
tree26dd0e1123aebadd1a12ab6f8ce1237304e8ff4b /tests/annotations
parent40732437777d00598fe9fcd35a2a9bf22eeb8f8a (diff)
downloadvala-cdcf96cbfb19d049758ae373284adee6b0ba07cb.tar.gz
codegen: NoAccessorMethod attribute is allowed for gobject-properties only
Diffstat (limited to 'tests/annotations')
-rw-r--r--tests/annotations/noaccessormethod.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/annotations/noaccessormethod.test b/tests/annotations/noaccessormethod.test
new file mode 100644
index 000000000..235bb7815
--- /dev/null
+++ b/tests/annotations/noaccessormethod.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+public class Foo {
+ [NoAccessorMethod]
+ public string baz { get; set; }
+}
+
+void main () {
+}