Skip to content

Commit 168c5bd

Browse files
author
Nuri Amari
committed
Add requires asserts to Generics/inverse_constraints.swift test
The test uses an experimental feature and will fail if run with a toolchain built without asserts. Add a line to the test requiring asserts.
1 parent d6483ae commit 168c5bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Generics/inverse_constraints.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -enable-experimental-feature NoncopyableGenerics -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
22

3+
// REQUIRES: asserts
4+
35
// CHECK-LABEL: (file).genericFn@
46
// CHECK: Generic signature: <T where T : Copyable>
57
func genericFn<T>(_ t: T) {}

0 commit comments

Comments
 (0)