summaryrefslogtreecommitdiffstats
path: root/runtime/doc/builtin.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-12 21:08:53 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-12 21:08:53 +0000
commitc0c2c262650103c4a21b64c3246388a350688616 (patch)
treec47119d4200782f8378d5c88595d711f08bd8d9f /runtime/doc/builtin.txt
parent3ce33b120c6479dfc8f22c7cc8945b9ef54285b0 (diff)
patch 9.0.1188: return value of type() for class and object unclearv9.0.1188
Problem: Return value of type() for class and object unclear. Solution: Add v:t_object and v:t_class.
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r--runtime/doc/builtin.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index ea3ce61e91..f202da0585 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -9947,6 +9947,8 @@ type({expr}) The result is a Number representing the type of {expr}.
Job: 8 |v:t_job|
Channel: 9 |v:t_channel|
Blob: 10 |v:t_blob|
+ Class 12 |v:t_class|
+ Object 13 |v:t_object|
For backward compatibility, this method can be used: >
:if type(myvar) == type(0)
:if type(myvar) == type("")