Descriptioncmd/gc: replace "typechecking loop" by nicer errors in some cases.
For issue 3757:
BEFORE: test/fixedbugs/bug463.go:12: typechecking loop involving a
test/fixedbugs/bug463.go:12 a
test/fixedbugs/bug463.go:12 <node DCLCONST>
AFTER: test/fixedbugs/bug463.go:12: constant definition loop
test/fixedbugs/bug463.go:12: a uses a
For issue 3937:
BEFORE: test/fixedbugs/bug464.go:12: typechecking loop involving foo
test/fixedbugs/bug464.go:12 <T>
test/fixedbugs/bug464.go:12 foo
test/fixedbugs/bug464.go:12 <node DCLFUNC>
AFTER: test/fixedbugs/bug464.go:12: foo is not a type
Fixes issue 3757.
Fixes issue 3937.
Patch Set 1 #Patch Set 2 : diff -r 308dea0e3d68 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 308dea0e3d68 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 308dea0e3d68 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r c122c85d0363 https://go.googlecode.com/hg/ #
MessagesTotal messages: 7
|