Skip to content

Commit

Permalink
Add more 'simple_multistatement_lambdas' tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Sep 3, 2024
1 parent e131ed1 commit 0373e49
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,17 @@ func foo():
var x1 = func(x): pass;pass
var x2 = func(x: int): return 123;pass
var x3 = func bar(): pass;123

func baz():
var x1 = func(x):
var y =x+1
if y:
return 1
return 2
var x2 = func():
if true:
var x=1
if x>0:
return 5
return 6
return 7
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,18 @@ func foo():
var x3 = func bar():
pass
123


func baz():
var x1 = func(x):
var y = x + 1
if y:
return 1
return 2
var x2 = func():
if true:
var x = 1
if x > 0:
return 5
return 6
return 7

0 comments on commit 0373e49

Please sign in to comment.