Skip to content

Commit 828b10a

Browse files
committed
[test] Remove a FIXME
These cases are odd, but well defined.
1 parent dad3ace commit 828b10a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/SILGen/capture_order.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,10 @@ func forward_declared_let_captures_local_fn() {
441441
}
442442
}
443443

444-
// FIXME: should/could these be diagnosed instead of accepted?
445444
func forward_declared_local_lazy_captures() {
446-
// runtime stack overflow, maybe UB?
445+
// runtime stack overflow
447446
lazy var infiniteRecurse: Any = { infiniteRecurse }()
448447

449-
// ??? not entirely sure what's going on here...
450-
// this can be called and doesn't seem to trip the sanitizers...
448+
// function that returns itself
451449
lazy var hmm: () -> Any = { hmm }
452450
}

0 commit comments

Comments
 (0)