We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e173e commit 6d4c245Copy full SHA for 6d4c245
validation-test/compiler_crashers_2_fixed/0202-rdar53183030.swift
@@ -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