From 14cc59eef8374ac8013a05d5d14c4cd4af9d0979 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 6 Jan 2022 18:04:58 +0100 Subject: pkg/compiler: prohibit use of direction attribute on union fields Direction attributes on unions work in a confusing way and don't do what users may think they do. Now we have out_overlay attribute for structs that allows to have overlapping input and output fields. --- pkg/compiler/testdata/errors.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/compiler/testdata/errors.txt') diff --git a/pkg/compiler/testdata/errors.txt b/pkg/compiler/testdata/errors.txt index 6cc2e2b0f..6d258cf50 100644 --- a/pkg/compiler/testdata/errors.txt +++ b/pkg/compiler/testdata/errors.txt @@ -412,3 +412,8 @@ union$overlay0 [ f0 int32 f1 int32 (out_overlay) ### unknown arg/field f1 attribute out_overlay ] + +union$directions [ + f1 int32 (in) ### unknown arg/field f1 attribute in + f2 int32 (out) ### unknown arg/field f2 attribute out +] -- cgit mrf-deployment