Commit 3dfe6f3
committed
Fix default output type conversion check
As a great man once said, "this behavior is fundamentally wrong."
By default, a converter should match if its known output type is
compatible with the requested output type - not the other way around.
That is, it's OK to return a subclass of the requested type. Returning a
superclass is not guaranteed to be OK.1 parent 31c38bd commit 3dfe6f3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments