Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lldb/test/Shell/SwiftREPL/Inputs/A.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ public struct FromInterface {}
public struct OtherType {}

public let testValue = FromInterface()

extension StringProtocol {
public func foo() -> Bool { true }
}
15 changes: 15 additions & 0 deletions lldb/test/Shell/SwiftREPL/LookupAfterImport.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Make sure we properly load in new extension members after an import.
// rdar://64040436

// RUN: rm -rf %t
// RUN: mkdir %t
// 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
// RUN: %lldb --repl="-I%t -L%t -lA" < %s 2>&1 | FileCheck %s

"".foo()
// CHECK: error: value of type 'String' has no member 'foo'

import A

"".foo()
// CHECK: $R0: Bool = true