Liana Husikyan
4173a71846
changed checking for external type in VariableDeclaration::checkTypeRequirements()
changed error msg
10 years ago
Lefteris Karapetsas
29669c16a2
Fix some styling issues and remove comments
10 years ago
Lefteris Karapetsas
dfcaf8a414
Abstract contract and inheritance
- Checking the linearized base contracts for abstract functions and
handle their existence appropriately
- If a contract is abstract it can't be created with new
- An abstract contract is not compiled (no backend code is generated)
- Of course tests
10 years ago
Liana Husikyan
dd15c53ae4
added externalTypes function to functionType
removed flag for externalSigniture
10 years ago
Liana Husikyan
8b14b4f4d1
two more tests
style fixes
10 years ago
Lefteris Karapetsas
742002b05a
Parsing of not fully implemented functions
- Adding the possibility of omitting a function body by simply ending a
function definition with a semicolon
- Such a function is marked as not fully implemented and any contract
that contains such a function is considered a not fully implemented contract
10 years ago
Liana Husikyan
f3e8d2b7e9
tests for external types
10 years ago
Liana Husikyan
ba8d0f615c
renamed externalTypes to externalSignature
10 years ago
Liana Husikyan
0ca313ec85
renamed getCanonicalSignature
added externalTypes instead of types for interface functions
added simple test
todo
testing
10 years ago
chriseth
523ce4d178
Disallowed special case of bytes0 arrays.
10 years ago
Liana Husikyan
7359f68b9f
- added more tests to check constant specifier implementation
- deny use of const for local variables
- deny unitialized const variables
- only int, fixed strings, and enums can be declaired as const
10 years ago
Liana Husikyan
304256b546
- added isPartOfExternalInterface to Declaration
- changed position for the constant specifier. now it goes after type: <type> <constant> <name> = <value>
- removed tests for constant functions, checkings for constant function doesn't belong to this story
10 years ago
Liana Husikyan
6f11b6a73f
added parsing for constant variables
10 years ago
Lefteris Karapetsas
5c042e2e59
Small FixedBytes type fixes
- Integer Constant is explicitly convertible to FixedBytes, so using
that in the tests
10 years ago
Lefteris Karapetsas
0cd3b15373
byte is now an alias for byte1
10 years ago
Lefteris Karapetsas
bb205103c4
Most EndToEndTests are now compliant with the Bytes renaming
10 years ago
Lefteris Karapetsas
9d7ebacabc
Bytes Tokens properly named and NameAndTypeResolution tests work
10 years ago
Lefteris Karapetsas
f94648fbb2
NameAndtypeResolution tests use ETH_TEST macros
10 years ago
chriseth
77b9fdcfbc
Fix type checks for storage variable initializer.
10 years ago
Lefteris Karapetsas
1681fbd885
getInheritableMembers() does not look at BaseContracts
- Also adding tests for improper accessing members of other contracts.
10 years ago
Lefteris Karapetsas
b1dcc2a77f
VisibleInDerivedContracts() is now virtual()
- Plus an extra test for internal visibility in a base class variable
10 years ago
Lefteris Karapetsas
f2fdeb3599
Add structs to inheritable members
10 years ago
Lefteris Karapetsas
6d48abddd3
Adding test for base class statevar accessors
10 years ago
Christian
9252c02a63
Type checks for array assignment.
10 years ago
Christian
fba4484151
Replaced "inheritable" by "internal".
10 years ago
Christian
30bd6f271f
Parsing of array types and basic implementation.
10 years ago
Gav Wood
2c6b18f01b
Add EVMJIT.
10 years ago
Lefteris Karapetsas
952350bec1
Bugfix for functions override
- Functions with byte array type parameters can now be safely
overriden. Parameter location is now set at the right place.
- Also made a test for the fix
10 years ago
Christian
27d436a04c
Rename "protected" to "inheritable".
10 years ago
Christian
ed0384b759
No write access to parameters of external functions.
10 years ago
Christian
0185ac5a0d
"external" visibility specifier.
10 years ago
Christian
4b0a566e70
Some changes to enums.
10 years ago
Lefteris Karapetsas
c3c52d59b2
Removing ';' from the end of EnumDefinition
10 years ago
Lefteris Karapetsas
64bba8e3cc
Explicit conversion from int to Enum
10 years ago
Lefteris Karapetsas
c3c1b5c63c
Addressing issues with Enums in Solidity
10 years ago
Lefteris Karapetsas
fc6210e00f
Indentation fixes
10 years ago
Lefteris Karapetsas
5c164fb42c
Enum Value member access should now work properly
- Also detection of duplicate enum values and tests for them have been
added
10 years ago
Lefteris Karapetsas
07886f42bb
Enum type conversion and member value access.
- Added tests for the type conversion part.
- Enum member value access still needs some work
10 years ago
Lefteris Karapetsas
5659ed1238
Correcting and testing enum member access
10 years ago
Lefteris Karapetsas
2dbf739119
Enums NameAndTypeResolution - WIP
- Also adding an EndToEnd enum test
10 years ago
Christian
02f2070ddb
Copying structs.
10 years ago
Lu Guanqun
1372154ff2
small fixes per chris's comments
10 years ago
Lu Guanqun
aabc234e45
add two more exp tests
10 years ago
Liana Husikyan
2fd33d98cc
- implemented Empty parameter name story. Now the name of input/return parameters of function can be not specified.
- added appropriate tests
Conflicts:
test/SolidityEndToEndTest.cpp
test/SolidityNameAndTypeResolution.cpp
10 years ago
Christian
a90ec7576c
Some fixes for the ether units parser.
10 years ago
Lu Guanqun
07ecb2c1f2
disallow declaration of void type
https://www.pivotaltracker.com/n/projects/1189488/stories/86318578
10 years ago
Lu Guanqun
1252ed3b88
add several type error test cases
10 years ago
Lefteris Karapetsas
6c5120978e
Accessors for multiple mappings implemented
10 years ago
Christian
76da204e17
Visibility specifiers.
10 years ago
Lefteris Karapetsas
c6c8a1ceeb
Adding mapping treatment to FunctionType
Plus a TypeResolution test for it
10 years ago