Skip to content

Commit b709fa2

Browse files
authored
Merge pull request #70376 from eeckstein/fix-is-escapable
AST: fix isEscapable in case the experimental feature NoncopyableGenerics is _not_ enabled
2 parents 49dbf15 + 50f5a4c commit b709fa2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ bool TypeBase::isEscapable(const DeclContext *dc) {
214214
if (auto nom = canType.getAnyNominal())
215215
return nom->isEscapable();
216216
else
217-
return false;
217+
return true;
218218
}
219219

220220
IsEscapableRequest request{canType};

test/embedded/FixedArray.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
// REQUIRES: VENDOR=apple
1313
// REQUIRES: OS=macosx
1414

15-
16-
// REQUIRES: needsfixing
17-
1815
func simpleStackAllocated() {
1916
var a = FixedArray<Int>(capacity: 10)
2017
a.append(27)

0 commit comments

Comments
 (0)