solidity/test/libsolidity/syntaxTests/license/license_in_string.sol

6 lines
389 B
Solidity
Raw Normal View History

2021-01-12 16:07:23 +00:00
contract C {
bytes license = "// SPDX-License-Identifier: GPL-3.0";
}
// ----
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.