diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-29 22:37:55 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-29 22:37:55 +0300 |
commit | 9af756aab86e7cc9e549bdcf89aac2425aee8950 (patch) | |
tree | 028cbbcb0fd0116f0102a4e1611be696b31552a5 /test/typedregex3.awk | |
parent | 5cb179dbcfe1503b2eaffa87b5f7502f41482be2 (diff) | |
download | egawk-9af756aab86e7cc9e549bdcf89aac2425aee8950.tar.gz egawk-9af756aab86e7cc9e549bdcf89aac2425aee8950.tar.bz2 egawk-9af756aab86e7cc9e549bdcf89aac2425aee8950.zip |
Typed regex fix, if in an array.
Diffstat (limited to 'test/typedregex3.awk')
-rw-r--r-- | test/typedregex3.awk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/typedregex3.awk b/test/typedregex3.awk new file mode 100644 index 00000000..ee6bcb69 --- /dev/null +++ b/test/typedregex3.awk @@ -0,0 +1,11 @@ +BEGIN { + a[1] = @/abc/ + b[1][2][3] = @/xyz/ + print typeof(a[1]), typeof(b[1][2][3]) + print a[1], b[1][2][3] + + a[1]++ + b[1][2][3] "" + print typeof(a[1]), typeof(b[1][2][3]) + print a[1], b[1][2][3] +} |