-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from fortran-lang/bug/got--imp-intrinsic
fix: Go To Implementation works for submodules
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module parent_mod | ||
implicit none | ||
type :: typ | ||
real(kind=8) :: value | ||
contains | ||
procedure :: method1 => submod_method1 | ||
end type typ | ||
interface | ||
module subroutine submod_method1(this) | ||
class(typ), intent(inout) :: this | ||
end subroutine submod_method1 | ||
module subroutine submod_method2(this, value) | ||
class(typ), intent(inout) :: this | ||
real, intent(in) :: value | ||
end subroutine submod_method2 | ||
end interface | ||
end module parent_mod | ||
submodule(parent_mod) submod | ||
contains | ||
module subroutine submod_method1(this) | ||
class(typ), intent(inout) :: this | ||
this%value = 0 | ||
end subroutine submod_method1 | ||
end submodule submod |