vscode-kotlin icon indicating copy to clipboard operation
vscode-kotlin copied to clipboard

Issues with type annotations when type includes a method, which includes a string

Open a-stewart opened this issue 2 years ago • 6 comments

Consider the following code:

image

The type annotations include a callable type which can have string arguments which fail - but then if the string contains either > or ) that ends the type annotation early, resulting in the closing string tag being mistakenly recognized as opening a string.

Note that, I expect that it is not just strings that are not considered here, but other primitives too. I am not familiar with Kotlin though to be fully certain on what is allowed in the language here though.

a-stewart avatar Oct 13 '22 16:10 a-stewart