module shape_mod
private ! hide the type-bound procedure implementation procedures
public :: shape ! allow access to shape
type shape
private ! hide the underlying details
integer :: color
logical :: filled
integer :: x
integer :: y
end type shape
interface shape
procedure constructor ! add constructor to shape generic interface
end interface
contains
function constructor(color, filled, x, y)
type(shape) :: constructor
integer :: color
logical :: filled
integer :: x
integer :: y
! do something as constructor
end function constructor
end module shape_mod
issues a warning in visual code editor:
"Variable "shape" declared twice in scope"
Hi,
having something like:
issues a warning in visual code editor: "Variable "shape" declared twice in scope"
Maybe related to Issue #18