summaryrefslogtreecommitdiff
path: root/tests/generics
diff options
context:
space:
mode:
authorFlorian Brosch <flo.brosch@gmail.com>2014-09-03 01:37:31 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-10-29 17:22:04 +0100
commit4e34272c34ef558663af19414a7584506cb60fc0 (patch)
tree7ed54b3d9b8954c40ce365e5d50d5be4f58317e9 /tests/generics
parentc9e00a0f38ba0bbe5742655ce96f20df15313ab6 (diff)
downloadvala-4e34272c34ef558663af19414a7584506cb60fc0.tar.gz
vala: Improve error message for arrays as type arguments
Diffstat (limited to 'tests/generics')
-rw-r--r--tests/generics/arrays-not-supported.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/generics/arrays-not-supported.test b/tests/generics/arrays-not-supported.test
new file mode 100644
index 000000000..39bce9001
--- /dev/null
+++ b/tests/generics/arrays-not-supported.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+void foo<G>(G g = null) {
+}
+
+void main () {
+ foo<int[]>();
+}