mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Remove a FIXME
These cases are odd, but well defined.
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user