Commit e35b4fa
Add test cases for method_exists with mixed and object types
Demonstrates that the false positive only occurs with template types
(object&T), not with plain mixed or object. For mixed,
ObjectWithoutClassType::isSuperTypeOf(MixedType) returns Maybe (mixed
is not necessarily an object), preventing the false positive. For plain
object, ObjectWithoutClassType::hasMethod() returns Maybe (via
ObjectTypeTrait), also preventing it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ff42ae6 commit e35b4fa
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
18 | 32 | | |
0 commit comments