solargraph icon indicating copy to clipboard operation
solargraph copied to clipboard

Nested parameterized types not recognized

Open amake opened this issue 5 years ago • 0 comments

It seems that nested parameterized types are not recognized by Solargraph's type checker. For instance Array<String> is OK but Array<Array<String>> is not.

I expected the latter to be supported because it appears to be valid according to the YARD Type Parser.

Sample code:

# @param bar [Array<Array<String>>] the arg
def foo(bar); end
% solargraph typecheck
/path/to/sample.rb:2 - Unresolved type undefined for bar param on #foo
1 problem found.

amake avatar Aug 11 '20 10:08 amake