barum / gomock

Automatically exported from code.google.com/p/gomock
Apache License 2.0
0 stars 0 forks source link

Generated import conflict with reserved words #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an import that must be aliased before it can be used, like foo/case.go
2. import c "foo/case"
3. Generate a mock for it.

What is the expected output? What do you see instead?
The generated mock includes import case "foo/case", which causes syntax error: 
unexpected case.
The expected output would be a mock including a non-reserved word, like import 
case0 ...

Original issue reported on code.google.com by bmichal...@google.com on 20 Feb 2014 at 1:44

GoogleCodeExporter commented 9 years ago

Original comment by dsymo...@golang.org on 24 Feb 2014 at 12:24

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f465e13c1a71.

Original comment by dsymo...@golang.org on 24 Feb 2014 at 12:34