Skip to content

Commit ff830ce

Browse files
committed
Add separate compiler crasher case for SR-3354
This isn't specifically related to code completion, but an infinite recursion in the type checker. https://bugs.swift.org/browse/SR-3354
1 parent a7e3eba commit ff830ce

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// RUN: not --crash %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
22
// REQUIRES: asserts
3-
protocol A{class T#^A^#class b:Array<T>
3+
// https://bugs.swift.org/browse/SR-3354
4+
protocol A{class T#^A^#class b:Array<T>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: not --crash %target-swift-frontend %s -emit-ir
2+
// REQUIRES: asserts
3+
4+
// https://bugs.swift.org/browse/SR-3354
5+
class A {
6+
class T {
7+
class b: Array<T> {
8+
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)