Skip to content

Commit a294e51

Browse files
committed
feat(file_m):allow non-allocatable constructor arg
This commit removes the allocatable attribute from the file_t constructor function that has a string_t array dummy argument. Doing so facilitates passing an expression actual argument.
1 parent e3451c2 commit a294e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sourcery/sourcery_file_m.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impure elemental module function read_lines(file_name) result(file_object)
2323

2424
pure module function construct(lines) result(file_object)
2525
implicit none
26-
type(string_t), intent(in), allocatable :: lines(:)
26+
type(string_t), intent(in) :: lines(:)
2727
type(file_t) file_object
2828
end function
2929

0 commit comments

Comments
 (0)