mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Enhance the -experimental-lazy-typecheck suite of tests by adopting -debug-forbid-typecheck-prefix instead of including broken code in the source file that would cause diagnostics to be emitted if the compiler typechecks too much during lazy typechecking. The content of .tbds and .swiftinterfaces emitted with and without lazy typechecking enabled can now be compared since the source compiles regardless of mode. This new test regime is less tedious to maintain and should catch regressions more reliably since it doesn't require new CHECK lines to be added to several tests every time a new test case is added in the shared input file.