-
-
Notifications
You must be signed in to change notification settings - Fork 40
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 #239 from fortran-lang/gnikit/issue150
fix: completion of USE ONLY interaces
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module some_mod | ||
implicit none | ||
private | ||
public :: some_sub | ||
interface some_sub | ||
module procedure a_subroutine | ||
module procedure b_subroutine | ||
end interface | ||
contains | ||
subroutine a_subroutine(x) | ||
integer, intent(in) :: x | ||
write(*,*) 'x = ', x | ||
end subroutine a_subroutine | ||
subroutine b_subroutine(x, y) | ||
integer, intent(in) :: x, y | ||
write(*,*) 'x = ', x | ||
write(*,*) 'y = ', y | ||
end subroutine b_subroutine | ||
end module some_mod | ||
|
||
program main | ||
use some_mod, only: some_sub | ||
implicit none | ||
end program main |