interp: better support interface operations

This commit teaches the interp scanner that supported interface
operations (type assertions, interface assertions) are supported.

This fixes a problem with math/rand in Go 1.14.
This commit is contained in:
Ayke van Laethem
2020-03-24 00:06:16 +01:00
committed by Ron Evans
parent 5133604b51
commit 25fcf3e18e
3 changed files with 27 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ var scanTestTable = []struct {
{"callFunctionPointer", sideEffectAll, []string{"functionPointer"}},
{"getDirtyPointer", sideEffectLimited, nil},
{"storeToPointer", sideEffectLimited, nil},
{"callTypeAssert", sideEffectNone, nil},
{"callInterfaceImplements", sideEffectNone, nil},
}
func TestScan(t *testing.T) {