aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/stream_interactor.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/stream_interactor.vala')
-rw-r--r--libdino/src/service/stream_interactor.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdino/src/service/stream_interactor.vala b/libdino/src/service/stream_interactor.vala
index 192460d4..5d248327 100644
--- a/libdino/src/service/stream_interactor.vala
+++ b/libdino/src/service/stream_interactor.vala
@@ -89,7 +89,12 @@ public class ModuleIdentity<T> : Object {
}
public T? cast(StreamInteractionModule module) {
+#if VALA_0_56_11
+ // We can't typecheck due to compiler bug
+ return (T) module;
+#else
return module.get_type().is_a(typeof(T)) ? (T?) module : null;
+#endif
}
public bool matches(StreamInteractionModule module) {