Skip to content

Commit 6d4c245

Browse files
committed
Add now-fixed test case from rdar://problem/53183030
1 parent 79e173e commit 6d4c245

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
protocol MyBindableObject {}
3+
4+
@propertyWrapper
5+
struct MyBinding<T> where T : MyBindableObject {
6+
public var wrappedV: T
7+
public var wrapperValue: MyBinding<T> {
8+
return self
9+
}
10+
public init(initialValue: T) {
11+
self.value = initialValue
12+
}
13+
}
14+
class BeaconDetector: MyBindableObject {
15+
struct ContentView {
16+
@MyBinding var detector = BeaconDetector()
17+
func foo() {
18+
_ = detector.undefined == 1
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)