From 5c1e02070621f89371ac87c68e0083893a9f9461 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 23 Feb 2018 14:00:41 +0100 Subject: pkg/compiler: prohibit len of other union options --- pkg/compiler/testdata/errors2.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/compiler/testdata/errors2.txt') diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt index 6902553af..f00a6afb4 100644 --- a/pkg/compiler/testdata/errors2.txt +++ b/pkg/compiler/testdata/errors2.txt @@ -73,8 +73,14 @@ s2 { f1 s1 } +u1 [ + f1 ptr[in, array[int8]] + f2 len[f1, int32] ### len target f1 does not exist +] + foo$200(a ptr[in, s2]) foo$201(a ptr[in, s1]) +foo$202(a u1) # Resource ctor tests. -- cgit mrf-deployment