summaryrefslogtreecommitdiff
path: root/tests/girwriter/girtest.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-04-13 20:36:08 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-04-14 09:14:11 +0200
commitb42c4b54a3589cffcab9dcce603c82728bcd82d0 (patch)
treedbd833d214300b7306a57340a180b8c6e2b7d94e /tests/girwriter/girtest.vala
parentcff2e6e470efae1f4e178ab13cb2b3d5dde502c3 (diff)
downloadvala-b42c4b54a3589cffcab9dcce603c82728bcd82d0.tar.gz
vala: Don't make GenericType nullable by default
Allow equality between nullable and non-nullable generic-types for now Fixes https://gitlab.gnome.org/GNOME/vala/issues/1191
Diffstat (limited to 'tests/girwriter/girtest.vala')
-rw-r--r--tests/girwriter/girtest.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/girwriter/girtest.vala b/tests/girwriter/girtest.vala
index b2b107385..1125bfa1c 100644
--- a/tests/girwriter/girtest.vala
+++ b/tests/girwriter/girtest.vala
@@ -163,7 +163,7 @@ namespace GirTest {
public delegate bool DelegateErrorTest () throws ErrorTest;
- public delegate bool DelegateGenericsTest<G,T> (G g, T t);
+ public delegate bool DelegateGenericsTest<G,T> (G g, T? t);
[GIR (visible = false)]
public delegate void SkippedDelegate ();
@@ -436,7 +436,7 @@ namespace GirTest {
public GenericsTest.typed (owned DelegateGenericsTest<G,T> cb) {
}
- public void method (T param) {
+ public void method (T? param) {
}
}