1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:04:44 -07:00
go/test/typeparam
Dan Scales f19e49e7b1 [dev.typeparams] cmd/compile: added a builtins.go test, fixed one bug
The builtins.go test is derived from
cmd/compile/internal/types2/testdata/check/builtins.go2, after removing
the error cases.  Added a few extra tests for len/cap/append.

Fixed one bug, which is that DELETE operations can't be transformed if
their argument is a typeparam. Also, the tranform of LEN/CAP calls does
not need to be delayed. Removed out-date references to the old
typechecker in the comments.

Change-Id: If7a21506a7ff63ff7c8e87ccd614ef4ff3a0d3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/336010
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>
2021-07-21 21:25:20 +00:00
..
absdiffimp.dir [dev.typeparams] cmd/compile: export/import of recursive generic types. 2021-06-04 16:43:27 +00:00
aliasimp.dir
chansimp.dir
factimp.dir [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
listimp2.dir
listimp.dir [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
mapimp.dir
mapsimp.dir
mdempsky [dev.typeparams] test: add regress tests that fail(ed) with -G=3 2021-07-07 11:12:24 +00:00
mincheck.dir [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
minimp.dir [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
mutualimp.dir [dev.typeparams] cmd/compile: create .dict Param in the package of the instantiated function 2021-06-07 19:34:39 +00:00
orderedmapsimp.dir [dev.typeparams] cmd/compile: allow inlining in instantiated functions 2021-06-04 17:48:10 +00:00
pairimp.dir
setsimp.dir
sliceimp.dir [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
stringerimp.dir
valimp.dir
absdiff.go [dev.typeparams] cmd/compile: export/import of recursive generic types. 2021-06-04 16:43:27 +00:00
absdiffimp.go [dev.typeparams] cmd/compile: export/import of recursive generic types. 2021-06-04 16:43:27 +00:00
adder.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
aliasimp.go
append.go
boundmethod.go [dev.typeparams] Add optional sub-dict entry for typeparam bound calls 2021-07-12 16:09:57 +00:00
builtins.go [dev.typeparams] cmd/compile: added a builtins.go test, fixed one bug 2021-07-21 21:25:20 +00:00
chans.go
chansimp.go
combine.go
cons.go
dictionaryCapture-noinline.go [dev.typeparams] test: add string quoting support to test/run.go 2021-06-12 14:36:25 +00:00
dictionaryCapture.go [dev.typeparams] cmd/compile: handle the (*T).M method expression with dictionaries 2021-07-07 17:31:57 +00:00
double.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
equal.go [dev.typeparams] cmd/compile: use dictionary to convert arguments of ==, != to interfaces 2021-07-16 18:31:15 +00:00
fact.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
factimp.go
graph.go
ifaceconv.go [dev.typeparams] cmd/compile: handle derived types that are converted to interfaces 2021-07-07 17:40:11 +00:00
importtest.go
index.go [dev.typeparams] cmd/compile: functions to create GC shape types/names for a concrete type 2021-06-30 20:51:17 +00:00
interfacearg.go
issue39755.go [dev.typeparams] cmd/compile: fix small -G=3 issues for tests disabled in run.go 2021-07-16 18:30:16 +00:00
issue44688.go [dev.typeparams] cmd/compile: generate wrappers within unified IR 2021-06-25 05:00:20 +00:00
issue45547.go
issue45722.go
issue45738.go
issue45817.go
issue46472.go
list2.go
list.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
listimp2.go
listimp.go
lockable.go
map.go
mapimp.go
maps.go
mapsimp.go
metrics.go
min.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
mincheck.go
minimp.go
mutualimp.go [dev.typeparams] cmd/compile: create .dict Param in the package of the instantiated function 2021-06-07 19:34:39 +00:00
nested.go [dev.typeparams] test: add expected failure mechanism 2021-07-07 11:12:13 +00:00
nested.out [dev.typeparams] cmd/compile/internal/types2: support local defined types 2021-06-16 21:38:50 +00:00
ordered.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
orderedmap.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
orderedmapsimp.go [dev.typeparams] cmd/compile: export/import of recursive generic types. 2021-06-04 16:43:27 +00:00
pair.go
pairimp.go
pragma.go
sets.go
setsimp.go
settable.go
sliceimp.go
slices.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
smallest.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
smoketest.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
stringable.go
stringer.go
stringerimp.go
struct.go
subdict.go [dev.typeparams] cmd/compile: start using sub-dictionary entries where needed 2021-07-02 19:07:06 +00:00
sum.go [dev.typeparams] test: update all the typeparam tests to use the new union/tilde syntax 2021-06-03 16:05:22 +00:00
tparam1.go [dev.typeparams] cmd/compile/internal/types2: more consistent handling of predeclared "any" 2021-07-16 04:41:47 +00:00
typelist.go [dev.typeparams] cmd/compile/internal/types2: embedding stand-alone type parameters is not permitted 2021-07-14 23:33:52 +00:00
valimp.go
value.go [dev.typeparams] cmd/compile: export/import of recursive generic types. 2021-06-04 16:43:27 +00:00