mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, requests would fail silently by returning an empty struct in the response. With this change, responses will properly report fail with the internal error.
16 lines
417 B
Swift
16 lines
417 B
Swift
let a = 12
|
|
|
|
// rdar://problem/30346106
|
|
// Invalid offset should trigger a crash.
|
|
|
|
// RUN: not %sourcekitd-test 2>&1 \
|
|
// RUN: -req=open %s -- %s == \
|
|
// RUN: -req=edit -async -offset=0 -length=200 -replace='' %s -- %s == \
|
|
// RUN: -req=cursor -offset=250 %s -- %s \
|
|
// RUN: | %FileCheck %s
|
|
|
|
// rdar://problem/38162017
|
|
// REQUIRES: OS=macosx
|
|
|
|
// CHECK: (Request Failed): Unable to resolve the start of the token
|