mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
295 B
Swift
13 lines
295 B
Swift
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck %s --check-prefix=CHECK-NO-ASSERTION
|
|
|
|
// Used to trip an assertion
|
|
|
|
public struct Foo {
|
|
func bar() {
|
|
var copySelf = self
|
|
repeat { copySelf
|
|
|
|
private extension String {}
|
|
|
|
// CHECK-NO-ASSERTION-NOT: Assertion
|