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 7f94bbf commit ba9f6a2Copy full SHA for ba9f6a2
validation-test/Sema/type_checker_crashers_fixed/rdar83666783.swift
@@ -0,0 +1,16 @@
1
+// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -typecheck -verify
2
+// REQUIRES: objc_interop
3
+
4
+import Foundation
5
6
+struct S {
7
+ var test: CGFloat
8
+}
9
10
+func compute(_: Double?) -> Double? {
11
+ return 42
12
13
14
+func test(s: S?) {
15
+ _ = compute(s?.test) // expected-error {{cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'}}
16
0 commit comments