aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/issue47272.out
diff options
context:
space:
mode:
authorDan Scales <danscales@google.com>2021-08-12 17:08:49 -0700
committerDan Scales <danscales@google.com>2021-08-17 13:23:13 +0000
commitb7b790a71a86678f036b7d30a892c5f792c5092f (patch)
tree6289c12416efbbddd25016fff4c1ca3c08c1c7f0 /test/typeparam/issue47272.out
parenta304273d74b95c835ee08b641a17ce6bc591ddd3 (diff)
downloadgo-b7b790a71a86678f036b7d30a892c5f792c5092f.tar.gz
go-b7b790a71a86678f036b7d30a892c5f792c5092f.zip
cmd/compile: fix CONVIFACE case converting interface to empty interface
We need an extra case in convertToDictionary. In the case of an operand which is an interface and converting to an empty interface, we don't want to get the run-time type from the dictionary (which would be the run-time type of the interface). We want to do a type-assert to the empty interface. Change-Id: I414247210168153151272fab198bfe82ad7b1567 Reviewed-on: https://go-review.googlesource.com/c/go/+/342009 Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Trust: Dan Scales <danscales@google.com>
Diffstat (limited to 'test/typeparam/issue47272.out')
-rw-r--r--test/typeparam/issue47272.out2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/typeparam/issue47272.out b/test/typeparam/issue47272.out
new file mode 100644
index 0000000000..9c433faa97
--- /dev/null
+++ b/test/typeparam/issue47272.out
@@ -0,0 +1,2 @@
+Some(1) None
+Ok(1) Err(test)