mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 19:02:18 +00:00
claro wrapper added
This commit is contained in:
2734
lib/wrappers/claro.nim
Normal file
2734
lib/wrappers/claro.nim
Normal file
File diff suppressed because it is too large
Load Diff
5
tests/accept/compile/tgenericprocvar.nim
Executable file
5
tests/accept/compile/tgenericprocvar.nim
Executable file
@@ -0,0 +1,5 @@
|
||||
proc foo[T](thing: T) =
|
||||
discard thing
|
||||
|
||||
var a: proc (thing: int) = foo[int]
|
||||
|
||||
@@ -19,6 +19,7 @@ tconstr2.nim;69
|
||||
tcontinuexc.nim;ECcaught
|
||||
tcopy.nim;TEMP=C:\Programs\xyz\bin
|
||||
tcurrncy.nim;25
|
||||
texcsub.nim;caught!
|
||||
texplicitgeneric1.nim;Key: 12 value: 12Key: 13 value: 13 Key: A value: 12 Key: B value: 13
|
||||
tfinally.nim;came here 3
|
||||
tfinally2.nim;ABCD
|
||||
|
||||
|
11
tests/accept/run/texcsub.nim
Normal file
11
tests/accept/run/texcsub.nim
Normal file
@@ -0,0 +1,11 @@
|
||||
# Test inheritance for exception matching:
|
||||
|
||||
try:
|
||||
raise newException(EOS, "dummy message")
|
||||
except E_Base:
|
||||
echo "caught!"
|
||||
except:
|
||||
echo "wtf!?"
|
||||
|
||||
#OUT caught!
|
||||
|
||||
4
tests/reject/ttypelessemptyset.nim
Executable file
4
tests/reject/ttypelessemptyset.nim
Executable file
@@ -0,0 +1,4 @@
|
||||
var q = false
|
||||
discard (if q: {} else: {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user