Skip to content

Commit e724596

Browse files
authored
Add example for unreachable code (#6153)
1 parent bede612 commit e724596

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def say_hello():
2+
return True
3+
print("Hello World!, Outside function.") # [unreachable]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def say_hello():
2+
print("Hello World!, Inside function.")
3+
return True

0 commit comments

Comments
 (0)