Files
swift-mirror/test/SourceKit/CursorInfo/rdar_30248264.swift
Nathan Hawes 53e1bdc1e3 [cursor-info] Fix crash due to invalid base type in the PrintOptions passed to the AST printer
Resolves rdar://problem/30248264
Also added test cases for rdar://problem/30292429 (already fixed)
2017-04-06 16:04:07 -07:00

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