Skip to content

Commit 3e2e81d

Browse files
committed
Add already-fixed test case from rdar://problem/45557325.
1 parent dafaabe commit 3e2e81d

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)