xref: /llvm-project/flang/test/Semantics/resolve23.f90 (revision 6c1ac141d3c98af9738bc77fcb55602cbff7751f)
1! RUN: %python %S/test_errors.py %s %flang_fc1
2module m
3  type :: t
4    real :: y
5  end type
6end module
7
8use m
9implicit type(t)(x)
10z = x%y  !OK: x is type(t)
11!ERROR: 'w' is not an object of derived type; it is implicitly typed
12z = w%y
13end
14