File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
validation-test/IDE/crashers_2_fixed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s
2
+ // REQUIRES: objc_interop
3
+
4
+ import Foundation
5
+
6
+ class A {
7
+ static var `default` = A ( )
8
+
9
+ func foo( arg: String ) -> Bool {
10
+ return false
11
+ }
12
+
13
+ func foo( arg: String , _ flag: UnsafeMutablePointer < ObjCBool > ? ) -> Bool {
14
+ return true
15
+ }
16
+ }
17
+
18
+ class B {
19
+ var bar : Bool = false
20
+ func baz( ) {
21
+ bar = A . default. foo ( arg: self . ) // expected-error {{expected member name following '.'}}
22
+ }
23
+ }
Original file line number Diff line number Diff line change 1
1
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -code-completion-token=COMPLETE -source-filename=%s
2
-
3
2
// REQUIRES: objc_interop
4
3
5
4
import Foundation
6
5
7
-
8
6
class A {
9
7
static var `default` = A ( )
10
8
You can’t perform that action at this time.
0 commit comments