Skip to content

Commit 569a80c

Browse files
committed
Merge pull request #774 from practicalswift/sourcekit-061-swift-constraints-solution-coercetotype
[SourceKit] Add test case for crash triggered in swift::constraints::Solution::coerceToType(…)
2 parents b83c6d6 + 63320ab commit 569a80c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: not --crash %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
2+
// REQUIRES: asserts
3+
protocol P{
4+
protocol A{
5+
let t={
6+
protocol c{
7+
let:n
8+
class A{
9+
func c
10+
let s=c
11+
protocol e{
12+
typealias f=#^A^#

0 commit comments

Comments
 (0)