swift
5ae0132e - [sourcekitd][AST] Fix CursorInfo crash on method with unresolved default value

Commit
6 years ago
[sourcekitd][AST] Fix CursorInfo crash on method with unresolved default value When printing its annotated decl, we would would assume the param's default value is present if the default value kind was "Normal". The type checker explicitly sets the default value to nullptr if it doesn't type check though, so we were crashing for that case. Added the check. Resolves rdar://problem/46694149
Author
Nathan Hawes
Committer
Nathan Hawes
Parents
Loading