mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add syntax tests for import statements
This commit is contained in:
parent
49573bad46
commit
7b5e912874
3
test/libsolidity/syntaxTests/parsing/import_complex.sol
Normal file
3
test/libsolidity/syntaxTests/parsing/import_complex.sol
Normal file
@ -0,0 +1,3 @@
|
||||
import {hello, world} from "hello";
|
||||
// ----
|
||||
// ParserError: (0-35): Source "hello" not found: File not supplied initially.
|
@ -0,0 +1,3 @@
|
||||
import {hello, world} from function;
|
||||
// ----
|
||||
// ParserError: (27-35): Expected import path.
|
@ -0,0 +1,3 @@
|
||||
import {hello, world};
|
||||
// ----
|
||||
// ParserError: (21-22): Expected "from".
|
@ -0,0 +1,3 @@
|
||||
import function;
|
||||
// ----
|
||||
// ParserError: (7-15): Expected string literal (path), "*" or alias list.
|
3
test/libsolidity/syntaxTests/parsing/import_simple.sol
Normal file
3
test/libsolidity/syntaxTests/parsing/import_simple.sol
Normal file
@ -0,0 +1,3 @@
|
||||
import "hello";
|
||||
// ----
|
||||
// ParserError: (0-15): Source "hello" not found: File not supplied initially.
|
Loading…
Reference in New Issue
Block a user