File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
lldb/test/Shell/SwiftREPL Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,7 @@ public struct FromInterface {}
24
24
public struct OtherType { }
25
25
26
26
public let testValue = FromInterface ( )
27
+
28
+ extension StringProtocol {
29
+ public func foo( ) -> Bool { true }
30
+ }
Original file line number Diff line number Diff line change
1
+ // Make sure we properly load in new extension members after an import.
2
+ // rdar://64040436
3
+
4
+ // RUN: rm -rf %t
5
+ // RUN: mkdir %t
6
+ // RUN: %target-swiftc -emit-library %S/Inputs/A.swift -module-name A -emit-module-path %t/A.swiftmodule -o %t/libA%target-shared-library-suffix
7
+ // RUN: %lldb --repl="-I%t -L%t -lA" < %s 2>&1 | FileCheck %s
8
+
9
+ "".foo()
10
+ // CHECK: error: value of type 'String' has no member 'foo'
11
+
12
+ import A
13
+
14
+ "".foo()
15
+ // CHECK: $R0: Bool = true
You can’t perform that action at this time.
0 commit comments