blob: fd8566a5da92521946b27cbd9db53a7b3b728bac [file] [log] [blame]
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
protocol MyDelegate: AnyObject {
func mySweetDelegateFunction()
}
class Foo {
weak var delegate: MyDelegate?
func bar() {
self.delegate.#^A^#
// ^--- type "." here -> crash
}
}