From 222462c77a695c1ba28ee8fc535a43979c0cff2d Mon Sep 17 00:00:00 2001 From: Jeff Long <willcode4@gmail.com> Date: Fri, 9 Apr 2021 19:52:51 -0400 Subject: grc: match data type aliases as well as types Signed-off-by: Jeff Long <willcode4@gmail.com> --- grc/core/Connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'grc/core/Connection.py') diff --git a/grc/core/Connection.py b/grc/core/Connection.py index 6fd78a41f1..718dd69e71 100644 --- a/grc/core/Connection.py +++ b/grc/core/Connection.py @@ -8,6 +8,7 @@ SPDX-License-Identifier: GPL-2.0-or-later from .base import Element +from .Constants import ALIAS_OF from .utils.descriptors import lazy_property @@ -92,7 +93,7 @@ class Connection(Element): source_dtype = self.source_port.dtype sink_dtype = self.sink_port.dtype - if source_dtype != sink_dtype: + if source_dtype != sink_dtype and source_dtype != ALIAS_OF.get(sink_dtype): self.add_error_message('Source IO type "{}" does not match sink IO type "{}".'.format(source_dtype, sink_dtype)) source_size = self.source_port.item_size -- cgit v1.2.3