Files
swift-mirror/validation-test/IDE/crashers_2_fixed/0014-sr4560.swift
Slava Pestov 4817bd4214 Add some SourceKit crasher test cases
The unfixed ones were discovered by fuzzing. I have fixes for most
of them in an in-progress PR.

One that was already fixed is just a regression test I'm adding.
2017-04-11 14:26:10 -07:00

15 lines
283 B
Swift

// 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
}
}