mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
We were recently altering the logic in reflect.go for type names, which could have broken this kind of valid use of reflection. Add a regression test, which I verified would break before my last change to "simplify" the logic, which actually changed the logic, as xuannv112 correctly pointed out. After thinking about the change in behavior for a little while, I realised that the new behavior is more correct, hence the test.