summaryrefslogtreecommitdiff
path: root/vala/valaarraytype.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-05-08 13:46:22 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-05-08 08:25:18 +0200
commit489895fbd7a550e661f9f6ea19d3dcd25d0cc790 (patch)
treecbbf9a2ef40e0f5b7bee098798f0006ba3ed11cb /vala/valaarraytype.vala
parentf7e70338aee8717f4b2050f442d9a6fc41b50d5d (diff)
downloadvala-489895fbd7a550e661f9f6ea19d3dcd25d0cc790.tar.gz
Reintroduce POSIX profile
This reverts commit ca020bf04a09fe16e5583eea5a3a341e7796bff5.
Diffstat (limited to 'vala/valaarraytype.vala')
-rw-r--r--vala/valaarraytype.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala
index 10be086d8..626c60c89 100644
--- a/vala/valaarraytype.vala
+++ b/vala/valaarraytype.vala
@@ -194,7 +194,7 @@ public class Vala.ArrayType : ReferenceType {
}
public override bool compatible (DataType target_type) {
- if (target_type.data_type != null) {
+ if (CodeContext.get ().profile == Profile.GOBJECT && target_type.data_type != null) {
if (target_type.data_type.is_subtype_of (CodeContext.get ().analyzer.gvalue_type.data_type) && element_type.data_type == CodeContext.get ().root.scope.lookup ("string")) {
// allow implicit conversion from string[] to GValue
return true;