File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ instead of library functions.
87
87
}
88
88
89
89
function contains(Data storage self, uint value)
90
- public
91
90
view
92
91
returns (bool)
93
92
{
Original file line number Diff line number Diff line change @@ -517,15 +517,16 @@ SOLTMPDIR=$(mktemp -d)
517
517
opts=()
518
518
# We expect errors if explicitly stated, or if imports
519
519
# are used (in the style guide)
520
- if grep -E " This will not compile|import \" " " $f " > /dev/null
520
+ if grep -E " // This will not compile" " $f " > /dev/null ||
521
+ sed -e ' s|//.*||g' " $f " | grep -E " import \" " > /dev/null
521
522
then
522
523
opts=(--expect-errors)
523
524
fi
524
- if grep " This will report a warning" " $f " > /dev/null
525
+ if grep " // This will report a warning" " $f " > /dev/null
525
526
then
526
527
opts+=(--expect-warnings)
527
528
fi
528
- if grep " This may report a warning" " $f " > /dev/null
529
+ if grep " // This may report a warning" " $f " > /dev/null
529
530
then
530
531
opts+=(--ignore-warnings)
531
532
fi
You can’t perform that action at this time.
0 commit comments