go/test/gen
Ian Lance Taylor e643c9792f [dev.go2go] go/go2go: avoid multiple identical instantiations
Move tracking of instantiations from translator to Importer,
so that we can track all instantiations within a package
to avoid duplicates.

Fixes #39749

Change-Id: If6cd5bcdc6e19c2d6481e62a6187ddf7f4fac72a
Reviewed-on: https://go-review.googlesource.com/c/go/+/239337
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-06-22 18:38:41 +00:00
..
err002.dir go/go2go, cmd/go2go, test: rewrite example code to not use contracts 2020-06-13 12:24:51 -07:00
g005.dir go/go2go, cmd/go2go: support importing Go2 packages 2020-06-13 12:24:45 -07:00
g030.dir [dev.go2go] go/go2go: avoid multiple identical instantiations 2020-06-22 18:38:41 +00:00
err001.go2 go/go2go, cmd/go2go, test: rewrite example code to not use contracts 2020-06-13 12:24:51 -07:00
err002.go2 test: drop a 0 from gen/err000n.go2 2020-06-13 12:24:49 -07:00
err003.go2 test: add a couple of pointer method test cases 2020-06-13 12:24:54 -07:00
err004.go2 [dev.go2go] go/go2go: error, not panic, for local parameterized type 2020-06-17 22:03:14 +00:00
g001.go2
g001.out
g002.go2
g002.out
g003.go2 go/go2go: support parameterized types 2020-06-13 12:24:44 -07:00
g004.go2 go/go2go: add support for methods of parameterized types 2020-06-13 12:24:44 -07:00
g005.go2 go/go2go, cmd/go2go: support importing Go2 packages 2020-06-13 12:24:45 -07:00
g006.go2 go/go2go, cmd/go2go, test: rewrite example code to not use contracts 2020-06-13 12:24:51 -07:00
g007.go2 go/go2go: record types of instantiated AST types 2020-06-13 12:24:49 -07:00
g008.go2 test/gen: add some FromStrings test cases 2020-06-13 12:24:53 -07:00
g009.go2 test/gen: add some FromStrings test cases 2020-06-13 12:24:53 -07:00
g010.go2 test/gen: add some FromStrings test cases 2020-06-13 12:24:53 -07:00
g011.go2 test: add a couple of pointer method test cases 2020-06-13 12:24:54 -07:00
g012.go2 test: add AbsDifference test case from design draft 2020-06-13 12:24:53 -07:00
g013.go2 go/go2go: improve handling of self-referential types 2020-06-13 12:24:53 -07:00
g014.go2 go/go2go: handle references to embedded instantiated types 2020-06-13 12:24:54 -07:00
g015.go2 go/go2go: support instantiating functions with directed channels 2020-06-13 12:24:54 -07:00
g016.go2 go/go2go: compare arguments of instantiated types 2020-06-13 12:24:54 -07:00
g017.go2 go/go2go: use types.RelativeTo rather than doing it by hand 2020-06-15 20:51:13 +00:00
g018.go2 [dev.go2go] go/go2go: check for embedded interface with type list 2020-06-17 04:20:54 +00:00
g019.go2 [dev.go2go] go/go2go: parenthesize type strings 2020-06-17 19:42:47 +00:00
g020.go2 [dev.go2go] go/go2go: make uses of typeInstantiations consistent 2020-06-17 21:53:37 +00:00
g021.go2 [dev.go2go] go/go2go: instantiate embedded type parameters 2020-06-17 23:21:31 +00:00
g022.go2 [dev.go2go] go/go2go: return quickly from typeWithoutArgs if no args 2020-06-17 23:34:10 +00:00
g023.go2 [dev.go2go] go/go2go: accept slash in an instantiated type name 2020-06-17 23:45:00 +00:00
g024.go2 [dev.go2go] go/go2go: don't crash on functions/methods with no body 2020-06-18 20:51:39 +00:00
g025.go2 [dev.go2go] go/go2go: add type arguments to type instantiation 2020-06-18 21:36:57 +00:00
g026.go2 [dev.go2go] go/go2go: add imports for packages referenced by inferred types 2020-06-18 22:00:57 +00:00
g027.go2 [dev.go2go] go/go2go: handle fields promoted through embedded type parameter 2020-06-18 23:28:46 +00:00
g028.go2 [dev.go2go] go/go2go: don't crash on an unnamed receiver 2020-06-20 00:36:20 +00:00
g029.go2 [dev.go2go] go/go2go: instantiate local type specs 2020-06-22 17:38:38 +00:00
g030.go2 [dev.go2go] go/go2go: avoid multiple identical instantiations 2020-06-22 18:38:41 +00:00