mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 23:35:22 +00:00
5
tests/js/t11697.nim
Normal file
5
tests/js/t11697.nim
Normal file
@@ -0,0 +1,5 @@
|
||||
import tables
|
||||
|
||||
var xs: Table[int, Table[int, int]]
|
||||
|
||||
doAssertRaises(KeyError): reset xs[0]
|
||||
8
tests/js/temptyseq.nim
Normal file
8
tests/js/temptyseq.nim
Normal file
@@ -0,0 +1,8 @@
|
||||
# #12671
|
||||
|
||||
proc foo =
|
||||
var x: seq[int]
|
||||
doAssertRaises(IndexError):
|
||||
inc x[0]
|
||||
|
||||
foo()
|
||||
Reference in New Issue
Block a user