Skip to content

Commit ca111c2

Browse files
authored
Merge pull request #1338 from hamishknight/cached-my-last-rain-check
2 parents 81edba6 + b9db568 commit ca111c2

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

lldb/test/Shell/SwiftREPL/Inputs/A.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ public struct FromInterface {}
2424
public struct OtherType {}
2525

2626
public let testValue = FromInterface()
27+
28+
extension StringProtocol {
29+
public func foo() -> Bool { true }
30+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)