Force infallible binding methods to return void.(fixes #1933)

This commit is contained in:
lpy 2014-03-19 12:01:41 +08:00
parent 6040271db3
commit 1abdd9c526

View file

@ -2461,6 +2461,8 @@ class CGCallGenerator(CGThing):
call = CGWrapper(call, pre="result_fallible = ")
elif result is not None:
call = CGWrapper(call, pre="result = ")
else:
call = CGWrapper(call, pre="let _: () = ")
call = CGWrapper(call)
self.cgRoot.append(call)