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.
2 parents 9a72b77 + a0c215b commit cf646daCopy full SHA for cf646da
lib/SIL/IR/AbstractionPattern.cpp
@@ -317,7 +317,7 @@ bool AbstractionPattern::matchesTuple(CanTupleType substType) {
317
case Kind::ClangType:
318
case Kind::Type:
319
case Kind::Discard: {
320
- if (isTypeParameter())
+ if (isTypeParameterOrOpaqueArchetype())
321
return true;
322
auto type = getType();
323
if (auto tuple = dyn_cast<TupleType>(type))
validation-test/compiler_crashers_2_fixed/sr14426.swift
@@ -0,0 +1,9 @@
1
+// RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking
2
+
3
+public struct MyList: Sequence {
4
+ var _list: [(Int, Int)]
5
6
+ public func makeIterator() -> some IteratorProtocol {
7
+ return _list.makeIterator()
8
+ }
9
+}
0 commit comments