mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Resolves rdar://problem/30248264 Also added test cases for rdar://problem/30292429 (already fixed)
15 lines
433 B
Swift
15 lines
433 B
Swift
// Checks that we don't crash.
|
|
// RUN: %sourcekitd-test -req=cursor -pos=9:25 %s -- %s | %FileCheck %s
|
|
// RUN: %sourcekitd-test -req=cursor -pos=11:13 %s -- %s | %FileCheck -check-prefix=CHECK2 %s
|
|
|
|
class A {
|
|
static prefix func +(_:A) {}
|
|
|
|
func method() {
|
|
let _ = "" /*here:*/== ""
|
|
// CHECK: source.lang.swift.ref.function.operator.infix
|
|
/*here*/+A()
|
|
// CHECK2: source.lang.swift.ref.function.operator.prefix
|
|
}
|
|
}
|