Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return type of certain function declaration not parsed correctly #190

Open
mystery-e204 opened this issue Jan 11, 2021 · 0 comments
Open

Comments

@mystery-e204
Copy link

There is a case of function declaration that leads to the return type not being parsed correctly, namely:

integer function test(a) result(b)
   implicit none
   real :: a
   b = a
end function

Hover over a correctly shows real but hover over b does not reveal anything.
It is the combination of the type in front of the function keyword with the result keyword at the end that causes this problem.
Both

integer function test(a)
   implicit none
   real :: a
   test = a
end function

as well as

function test(a) result(b)
   implicit none
   integer :: b
   real :: a
   b = a
end function

parse and show the return type correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant