Fixed: Make default return type to 'void' for '@action' or 'IBAction' marked method.

This commit is contained in:
Martin Carlberg committed 2013-08-12 16:53:19 +02:00
1 parent 29d7833fcb
commit 2e216d7e9a
1 file changed
+1 -1
+1 -1
View File
@@ -1905,7 +1905,7 @@ MethodDeclarationStatement: function(node, st, c) {
selectors = node.selectors,
nodeArguments = node.arguments,
returnType = node.returntype,
types = [returnType ? returnType.name : "id"],
types = [returnType ? returnType.name : (node.action ? "void" : "id")],
returnTypeProtocols = returnType ? returnType.protocols : null;
selector = selectors[0].name; // There is always at least one selector