假设我有一个模块
module module_1
end module module_1
Run Code Online (Sandbox Code Playgroud)
另一个模块使用第一个模块。
module module_2
use module_1
contains
function func_1
end function func_1
subroutine sub_1
end subroutine sub_1
end module_2
Run Code Online (Sandbox Code Playgroud)
module module_2
contains
function func_1
use module_1
end function func_1
subroutine sub_1
use module_1
end subroutine sub_1
end module_2
Run Code Online (Sandbox Code Playgroud)