public static native type(value as Object) as Type
Returns the runtime type of a value. Reference expressions are evaluated once and report the concrete object type, even after an upcast, a function call or a property access. An explicit type literal reports the type it names without constructing it.
| Parameter | Description |
|---|---|
value | The value to inspect. |
The runtime Type instance.
t = Application.type(42) print(t.fullName) boxed as Object = "Klyn" assert Application.type(boxed) == String.type