Commit 4473157
Add tests for direct instantiation of ReflectionClass with non-final class
Demonstrates that `new ReflectionClass(NonFinalClass::class)` returns
precise constant types since the generic parameter T is invariant, not
covariant.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3ffb67d commit 4473157
1 file changed
Lines changed: 16 additions & 0 deletions
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
0 commit comments