[Solved] (BUG) The Return of the Return Bug (XD)

Status
Not open for further replies.
Level 5
Joined
Dec 12, 2011
Messages
116
Hey guys.
I discovered the return bug few days ago.
Just for curiosity, for interest in seeing the WE not pointing an syntax error on it, I decided to just put the codes in my map and save it.

JASS:
function H2I takes handle h returns integer
     return h
     return 0
endfunction

function B2I takes boolean b returns integer
     return b
     return 0
endfunction

When I saved, I got errors.
The famous Return Bug just bugged with me (:P)

Take a look at the attachments.

Why, guys, why?

EDIT:
PS: I am using normal TFT editor, non-vJass, WE version 6059

hamsterpellet
 

Attachments

  • ReturnBugBug.jpg
    ReturnBugBug.jpg
    54.5 KB · Views: 145
  • ReturnBugBug2.jpg
    ReturnBugBug2.jpg
    56.3 KB · Views: 111
Status
Not open for further replies.
Back
Top