We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad3ace commit 828b10aCopy full SHA for 828b10a
test/SILGen/capture_order.swift
@@ -441,12 +441,10 @@ func forward_declared_let_captures_local_fn() {
441
}
442
443
444
-// FIXME: should/could these be diagnosed instead of accepted?
445
func forward_declared_local_lazy_captures() {
446
- // runtime stack overflow, maybe UB?
+ // runtime stack overflow
447
lazy var infiniteRecurse: Any = { infiniteRecurse }()
448
449
- // ??? not entirely sure what's going on here...
450
- // this can be called and doesn't seem to trip the sanitizers...
+ // function that returns itself
451
lazy var hmm: () -> Any = { hmm }
452
0 commit comments