You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//go:generate gowrap gen -g -v DecoratorName=POC -i Base -t proofOfBug.tpl -o proofOfBug.gen.go
type Base interface {
A()
Nested
}
type Nested interface {
B()
}
version 1.2.7 did not ignore nesteds
The text was updated successfully, but these errors were encountered:
@hexdigest I'm sorry for answering so late, the problem was very simple, when we mapping the types of files we also check if the type is the target, if is then we save in selectedType, but this func has two purpose, first is mapping the types and second is return the target type. The fix was just change a return to continue, but if you prefer can be removed because there are nothing after this condition.
@Dafaque your example it wasn't working because the nested struct was declared after the target struct, but already is working with this PR #68. Here is an example:
proofOfBug.tpl:
proofOfBug.go:
version 1.2.7 did not ignore nesteds
The text was updated successfully, but these errors were encountered: