]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Don't create duplicated complete-async code
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 13 Feb 2017 16:30:29 +0000 (17:30 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 13 Feb 2017 16:30:29 +0000 (17:30 +0100)
commit6ed2ec810d75f49478dbfdb5c6d98b2fc909e9f6
treec03953e8fce0168ad9997c58cfae476a8b4dd3ee
parent11c843e980a4f45bd058863ab4397dcc27fb2b52
codegen: Don't create duplicated complete-async code

Treat methods with non-void return-type special while they require a return
statement. This does not account for a trailing superfluous "return" which
will still trigger this code-duplication.

https://bugzilla.gnome.org/show_bug.cgi?id=778302
codegen/valaccodemethodmodule.vala