summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2020-06-06 10:31:19 +0300
committerGitHub <noreply@github.com>2020-06-06 09:31:19 +0200
commitb19ad22b90b920036fcc7752eca624e55a929cf3 (patch)
treee0a9fb60062f22439779597f492db3fcaab4fd5a /tests/js
parent7cdf4702699b5de0e31e1139122aa0486fad24a9 (diff)
downloadNim-b19ad22b90b920036fcc7752eca624e55a929cf3.tar.gz
Fix #14570 (#14571)
* Fix #14570
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/t14570.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/js/t14570.nim b/tests/js/t14570.nim
new file mode 100644
index 000000000..100c2651d
--- /dev/null
+++ b/tests/js/t14570.nim
@@ -0,0 +1,11 @@
+discard """
+  output: '''
+18
+'''
+"""
+
+type A = range[15 .. 30]
+
+let a: A = 18
+
+echo ord(a)