private_type_4.f90

来自「linux下编程用 编译软件」· F90 代码 · 共 18 行

F90
18
字号
! { dg-do compile }! PR 25093: Check that a PUBLIC function can't be of PRIVATE typemodule m1    type :: t1        integer :: i    end type t1    private :: t1    public :: f1     ! { dg-error "cannot be of PRIVATE type" }contains    type(t1) function f1()    end functionend module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?