hansec / fortran-language-server

Fortran Language Server for the Language Server Protocol
MIT License
295 stars 57 forks source link

Generic names for structure constructors #148

Open kkoocheki opened 4 years ago

kkoocheki commented 4 years ago

When using generic names for defining structure constructor, fortls complains that Variable "NAME" declared twice in scope, even though this is allowed, based on an example from the standard:

module mytype_module
type mytype
private
complex value
logical exact
end type
interface mytype
module procedure int_to_mytype
end interface
! Operator definitions etc.
...
contains
type(mytype) function int_to_mytype(i)
integer,intent(in) :: i
int_to_mytype%value = i
int_to_mytype%exact = .true.
end function
! Procedures to support operators etc.
...
end
mystery-e204 commented 3 years ago

This can be closed (changelog for 1.11.0, duplicate of #138).