# Fortran Wiki same_type_as

## Description

Query dynamic types for equality.

## Standard

Fortran 2003 and later

Inquiry function

## Syntax

result = same_type_as(a, b)

## Arguments

• a - Shall be an object of extensible declared type or unlimited polymorphic.
• b - Shall be an object of extensible declared type or unlimited polymorphic.

## Return Value

The return value is a scalar of type default logical. It is true if and only if the dynamic type of a is the same as the dynamic type of b.

## See Also

extends_type_of

category: intrinsics