You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does seem like a bug, but I haven't been able to reproduce it. I tried 5.5 as well as recent build of main branch. I see references to both `Int` and `Void` as expected:
$ cat /tmp/t.swift
let a: ((Int) -> Void) = {}%
$ bin/swift-ide-test -print-indexed-symbols -source-filename /tmp/t.swift
/tmp/t.swift:1:26: error: contextual type for closure argument list expects 1 argument, which cannot be implicitly ignored
let a: ((Int) -> Void) = {}
^
_ in
t.swift
------------
module | system | Swift | /.../lib/swift/macosx/Swift.swiftmodule/x86_64-apple-macos.swiftmodule
module | system | _Concurrency | /.../lib/swift/macosx/_Concurrency.swiftmodule/x86_64-apple-macos.swiftmodule
module | system | Swift | /.../lib/swift/macosx/Swift.swiftmodule/x86_64-apple-macos.swiftmodule
------------
1:5 | variable/Swift | a | s:14swift_ide_test1ayySicvp | Def | rel: 0
1:5 | function/acc-get/Swift | getter:a | s:14swift_ide_test1ayySicvg | Def,Impl,RelChild,RelAcc | rel: 1
RelChild,RelAcc | variable/Swift | a | s:14swift_ide_test1ayySicvp
1:5 | function/acc-set/Swift | setter:a | s:14swift_ide_test1ayySicvs | Def,Impl,RelChild,RelAcc | rel: 1
RelChild,RelAcc | variable/Swift | a | s:14swift_ide_test1ayySicvp
1:10 | struct/Swift | Int | s:Si | Ref | rel: 0
1:18 | type-alias/Swift | Void | s:s4Voida | Ref | rel: 0
I tried a few variants, including "in a function", "global variable", "using swift-ide-test", "using compiler with index store", but they all seemed to work. Any idea what might be different?
Environment
Swift @ 861f47f (5.6)
Additional Detail from JIRA
md5: a1c0283a58d068010a066cf1c0a5eeb3
Issue Description:
Given the following code:
I'd expect to see a reference to `Int`, yet one does not exist.
The text was updated successfully, but these errors were encountered: