diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-02-24 17:00:34 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-02-24 17:00:34 +0100 |
| commit | 44f66b4026e94ffbb63e7ba1a53f0c5f78a03fea (patch) | |
| tree | cea2c13644374a41f6f70151a233a993bd09f040 /prog/hints_test.go | |
| parent | 5c1e02070621f89371ac87c68e0083893a9f9461 (diff) | |
prog: return concrete arg types from Make functions
This removes a bunch of type assertions and makes code type safer.
Diffstat (limited to 'prog/hints_test.go')
| -rw-r--r-- | prog/hints_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/hints_test.go b/prog/hints_test.go index a3fd94c62..6648693d3 100644 --- a/prog/hints_test.go +++ b/prog/hints_test.go @@ -162,7 +162,7 @@ func TestHintsCheckDataArg(t *testing.T) { // Whatever type here. It's just needed to pass the // dataArg.Type().Dir() == DirIn check. typ := &ArrayType{TypeCommon{"", "", 0, DirIn, false, true}, nil, 0, 0, 0} - dataArg := MakeDataArg(typ, []byte(test.in)).(*DataArg) + dataArg := MakeDataArg(typ, []byte(test.in)) checkDataArg(dataArg, test.comps, func() { res[string(dataArg.Data())] = true }) |
