[vala/684-remove-field-context-from-symbolresolver] vala: added test for non-null set to null local variable
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/684-remove-field-context-from-symbolresolver] vala: added test for non-null set to null local variable
- Date: Tue, 16 Oct 2018 18:58:10 +0000 (UTC)
commit 934b28ae0e2d6f6b60ba1f6927007fe932fdb83f
Author: Daniel Espinosa <esodan gmail com>
Date: Tue Oct 16 13:57:11 2018 -0500
vala: added test for non-null set to null local variable
tests/nullability/bug611223.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tests/nullability/bug611223.vala b/tests/nullability/bug611223.vala
index 9fbf30c07..3d054e58f 100644
--- a/tests/nullability/bug611223.vala
+++ b/tests/nullability/bug611223.vala
@@ -4,4 +4,5 @@ void main() {
string? some_null = nullable ?? null;
string also_non_null = null ?? non_null;
string really_non_null = non_null ?? nullable;
+ string str = null; // Local Variables as Reference type, can be nullable
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]