pragma solidity ^0.4.24; // line comment /* Block comment */ contract Contract { struct StructWithFunctionTypes { function (uint, uint) returns(bool)a; function (uint, uint) returns(bool,bytes32, bytes32, bytes32, bytes32, bytes32, bytes32, bytes32)a; function(bytes32, bytes32) internal view[] b; function (bytes32, bytes32)internal[] c; function(bytes32, bytes32, bytes32, bytes32, bytes32, bytes32) internal view[] d; function(bytes32, bytes32, bytes32, bytes32, bytes32, bytes32, bytes32, bytes32, bytes32) internal view[] e; } event SomeEvent(); modifier modifierWithoutParams() { require(msg.sender != address(0)); _; } modifier modifierWithParams(address x) { require(msg.sender != x); _; } function ifBlockInOneLine(uint a) returns (uint b) { if (a < 0) b = 0x67; else if (a == 0) b = 0x12; else b = 0x78; } function forWithoutBlock() { uint i; uint sum; for ( i = 0; i < 10; i++ ) sum += i; } function fun(uint256 a) returns (uint) { if (something) foo(); // comment else if (somethingElse) bar(); else whatever(); return; } }