Skip to content

Commit d7f73fc

Browse files
committed
Apply Doug's patch to loosen test to just check for error
1 parent fc6665e commit d7f73fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/Generics/validate_stdlib_generic_signatures.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Verifies that all of the generic signatures in the standard library are
22
// minimal and canonical.
33

4-
// RUN: %target-typecheck-verify-swift -typecheck -verify-generic-signatures Swift
4+
// RUN: not %target-typecheck-verify-swift -typecheck -verify-generic-signatures Swift 2> %t.log
5+
6+
// RUN: grep -c "error:" %t.log | count 1
7+
// RUN: %FileCheck %s < %t.log
8+
9+
// CHECK: error: unexpected error produced: generic requirement 'τ_0_0.Index : Strideable' is redundant in <τ_0_0 where τ_0_0 : RandomAccessCollection, τ_0_0.Index : Strideable, τ_0_0.Indices == Range<τ_0_0.Index>, τ_0_0.Index.Stride == Int>
510

6-
// expected-no-diagnostics

0 commit comments

Comments
 (0)