Error: If selector expression in SELECT TYPE is not a named variable, associate-name=> shall appear

后端 未结 2 1606
栀梦
栀梦 2021-01-22 11:42

I am trying to use a type in another type. However, I just cannot make it compile. It is strange to me: the select type thing works in the main program but it doesn\'t work in a

2条回答
  •  清歌不尽
    2021-01-22 12:16

    No reason to use a pointer, just use the association part of select type (you did not write the error message, but IIRC it is quite descriptive):

       select type (twf => this%WF)
    

提交回复
热议问题