go/test/gen
Ian Lance Taylor 938e96e732 [dev.go2go] go/go2go: instantiate embedded field when needed
If an embedded field is an instantiated type, we need to instantiate
it when instantiating the whole type, in case the type arguments
themselves need instantiation.

Fixes #39953

Change-Id: I80b57456aa4f8e8b2eff82359066c37a9c2a40f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/240522
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-06-30 23:46:04 +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
g033.dir [dev.go2go] go/go2go: resolve type alias of parameterized type 2020-06-23 23:35:25 +00:00
g035.dir [dev.go2go] go/go2go: don't import both "./a" and "a" 2020-06-24 21:33:55 +00:00
g036.dir [dev.go2go] go/go2go: include package in instantation of ident 2020-06-24 22:15:29 +00:00
g037.dir [dev.go2go] go/go2go: add package qualifier when needed 2020-06-25 02:57:14 +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
err005.go2 [dev.go2go] go/go2go: check for instantiation with locally defined type 2020-06-22 22:19:20 +00:00
err006.go2 [dev.go2go] go/go2go: don't permit underscore as type argument 2020-06-22 23:30:28 +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: translate types to AST 2020-06-26 22:32:53 +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
g031.go2 [dev.go2go] go/go2go: ignore struct tags 2020-06-22 22:07:26 +00:00
g032.go2 [dev.go2go] go/go2go: use package name, not package path 2020-06-22 23:05:26 +00:00
g033.go2 [dev.go2go] go/go2go: resolve type alias of parameterized type 2020-06-23 23:35:25 +00:00
g034.go2 [dev.go2go] go/go2go: update name of embedded pointer to instantiation 2020-06-24 21:01:03 +00:00
g035.go2 [dev.go2go] go/go2go: don't import both "./a" and "a" 2020-06-24 21:33:55 +00:00
g036.go2 [dev.go2go] go/go2go: include package in instantation of ident 2020-06-24 22:15:29 +00:00
g037.go2 [dev.go2go] go/go2go: add package qualifier when needed 2020-06-25 02:57:14 +00:00
g038.go2 [dev.go2go] go/go2go: avoid crashing on predeclared error type 2020-06-26 18:43:49 +00:00
g039.go2 [dev.go2go] go/go2go: instantiate embedded field when needed 2020-06-30 23:46:04 +00:00