Skip to content

Commit 9ed658b

Browse files
authored
Merge pull request swiftlang#20124 from DougGregor/test-for-rdar-45557325
2 parents d026b10 + 3e2e81d commit 9ed658b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -typecheck -verify
2+
3+
// REQUIRES: objc_interop
4+
5+
import Foundation
6+
7+
class MyClass: NSObject {
8+
func f() {
9+
let url = URL(url) // expected-error{{variable used within its own initial value}}
10+
}
11+
}

0 commit comments

Comments
 (0)