hacky fix for generic constraints matching
This commit is contained in:
parent
4980ef85e2
commit
ca3a4ce672
8 changed files with 68 additions and 17 deletions
|
|
@ -1,8 +1,6 @@
|
|||
discard """
|
||||
file: "tfinally.nim"
|
||||
output: '''came
|
||||
here
|
||||
3'''
|
||||
output: "came\nhere\n3"
|
||||
"""
|
||||
# Test return in try statement:
|
||||
|
||||
|
|
@ -14,10 +12,8 @@ proc main: int =
|
|||
echo("came")
|
||||
return 2
|
||||
finally:
|
||||
echo("here ")
|
||||
echo("here")
|
||||
return 3
|
||||
|
||||
|
||||
echo main() #OUT came here 3
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue