WIP: as with generics.
This commit is contained in:
parent
814f527175
commit
656da1f6a9
5 changed files with 21 additions and 10 deletions
|
|
@ -1,10 +1,10 @@
|
|||
discard """
|
||||
output: '''Hello'''
|
||||
"""
|
||||
proc test[T]() =
|
||||
try:
|
||||
raise newException(T, "Hello")
|
||||
except T as foobar:
|
||||
echo(foobar.msg)
|
||||
|
||||
try:
|
||||
raise newException(Exception, "Hello")
|
||||
except Exception as foobar:
|
||||
echo(foobar.msg)
|
||||
|
||||
|
||||
test[Exception]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue