mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 10:18:29 +00:00
This test generates an infinite recursion between Carbon and C++ making a new type at each step through the recursion, producing an infinite number of types. We improve the test in a few ways: - Remove direct dependencies on min_prelude parts, we should just depend on a single min_prelude, and not `import Core` explicitly. - Remove a dependency on `i32` so we rely on less prelude. - Remove the use of pointers, which currently introduce a dependency on `Optional`, so we rely on less prelude. Instead use a generic `Wrap(T)` type that we nest repeatedly to generate types. - Add some comments and expand function names to help explain the behaviour being tested Now the test just depends on the convert.carbon prelude, which makes it much simpler when running under a debugger.