[vala/wip/baedert/nullable: 3/4] generitype: Stop lying about nullability in to_qualified_string
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/baedert/nullable: 3/4] generitype: Stop lying about nullability in to_qualified_string
- Date: Tue, 1 Nov 2016 14:40:18 +0000 (UTC)
commit b95b316d9260f5c667ca53e2eeff7813f3059545
Author: Timm Bäder <mail baedert org>
Date: Tue Nov 1 14:39:37 2016 +0100
generitype: Stop lying about nullability in to_qualified_string
vala/valagenerictype.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagenerictype.vala b/vala/valagenerictype.vala
index 66415e6..2508a44 100644
--- a/vala/valagenerictype.vala
+++ b/vala/valagenerictype.vala
@@ -53,7 +53,10 @@ public class Vala.GenericType : DataType {
}
public override string to_qualified_string (Scope? scope = null) {
- return type_parameter.name;
+ if (nullable)
+ return type_parameter.name + "?";
+ else
+ return type_parameter.name;
}
public override Symbol? get_member (string member_name) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]