Commit 5741ea7
committed
[RFC] Implementations of interfaces can include additional field arguments
This proposal extends the definition of a legal implementation of an interface to allow for additional field arguments, provided that those arguments are not required.
```
interface I {
field(arg: String): String
}
type T implements I {
field(arg: String, other: String): String
}
type T implements I {
field(arg: String, other String!): String
}
```1 parent d8a52f1 commit 5741ea7
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | | - | |
| 413 | + | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
0 commit comments