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

6 lines
489 B
Solidity
Raw Normal View History

2021-01-12 16:07:23 +00:00
import "// SPDX-License-Identifier: GPL-3.0";
contract C {}
// ----
// 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.
// ParserError 6275: (0-45): Source "// SPDX-License-Identifier: GPL-3.0" not found: File not supplied initially.