[test] Remove a FIXME

These cases are odd, but well defined.
This commit is contained in:
Hamish Knight
2025-11-01 17:38:03 +00:00
parent dad3acebd7
commit 828b10abd9

View File

@@ -441,12 +441,10 @@ func forward_declared_let_captures_local_fn() {
}
}
// FIXME: should/could these be diagnosed instead of accepted?
func forward_declared_local_lazy_captures() {
// runtime stack overflow, maybe UB?
// runtime stack overflow
lazy var infiniteRecurse: Any = { infiniteRecurse }()
// ??? not entirely sure what's going on here...
// this can be called and doesn't seem to trip the sanitizers...
// function that returns itself
lazy var hmm: () -> Any = { hmm }
}