Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar48648877.swift
Rintaro Ishizaki 19e54fed78 [CodeCompletion] Fixed a crasher regarding malformed operator decl
Infix operator completion used to crash if multiple infix operators with the
same name are declared in the module.

rdar://problem/48648877
2019-03-08 16:31:31 -08:00

31 lines
655 B
Swift

// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%t/main.swift %t/a.swift %t/b.swift %t/c.swift %t/d.swift
// BEGIN main.swift
func foo(x: Int, y: Int) {
x + y #^COMPLETE^#
}
// BEGIN a.swift
infix operator ***
// BEGIN b.swift
infix operator ***
// BEGIN c.swift
precedencegroup FooPrecedenceGroup {
higherThan: MultiplicationPrecedence
}
infix operator **** : FooPrecedenceGroup
// BEGIN d.swift
precedencegroup FooPrecedenceGroup {
higherThan: MultiplicationPrecedence
}
infix operator **** : FooPrecedenceGroup