-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
delegate_mismatch.yml
42 lines (34 loc) · 1.38 KB
/
delegate_mismatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
input:
input.go: |
package structs
// goverter:converter
// goverter:extend InputToOutput
type Converter interface {
Convert(source Input) Output
}
type Input struct {
ID int
}
type Output struct {
ID int
}
func InputToOutput(source Input) (Output, error) {
return Output{}, nil
}
error: |-
Error while creating converter method:
@workdir/input.go:6
func (github.com/jmattheis/goverter/execution.Converter).Convert(source github.com/jmattheis/goverter/execution.Input) github.com/jmattheis/goverter/execution.Output
[source] github.com/jmattheis/goverter/execution.Input
[target] github.com/jmattheis/goverter/execution.Output
| github.com/jmattheis/goverter/execution.Input
|
source
target
|
| github.com/jmattheis/goverter/execution.Output
ReturnTypeMismatch: Cannot use
func github.com/jmattheis/goverter/execution.InputToOutput(source github.com/jmattheis/goverter/execution.Input) (github.com/jmattheis/goverter/execution.Output, error)
in
func (github.com/jmattheis/goverter/execution.Converter).Convert(source github.com/jmattheis/goverter/execution.Input) github.com/jmattheis/goverter/execution.Output
because no error is returned as second return parameter