contract MintedCrowdsale is Crowdsale {

  /**
   * @dev Overrides delivery by minting tokens upon purchase.
   * @param beneficiary Token purchaser
   * @param tokenAmount Number of tokens to be minted
   */
  function _deliverTokens(
    address beneficiary,
    uint256 tokenAmount
  )
    internal
  {
    // Potentially dangerous assumption about the type of the token.
    require(
      ERC20Mintable(address(token())).mint(beneficiary, tokenAmount));
  }
}
function _deliverTokens(
  address beneficiary,
  uint256 tokenAmount
)
  internal
{
  // Potentially dangerous assumption about the type of the token.
  require(
    ERC20Mintable(address(token())).mint(beneficiary, tokenAmount));
}

/**
 * @dev Overrides delivery by minting tokens upon purchase.
 * @param beneficiary Token purchaser
 * @param tokenAmount Number of tokens to be minted
 */