1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Revert "x64, v2 backends"

This reverts commit 81ae54d9bd.
This commit is contained in:
Alexander Medvednikov
2019-12-31 13:23:12 +01:00
parent 81ae54d9bd
commit da5fb5dcbd
21 changed files with 74 additions and 901 deletions

View File

@ -356,7 +356,6 @@ fn (p mut Parser) name_expr() string {
}
// Color.green
else if p.peek() == .dot {
is_arr_start := p.prev_tok == .lsbr
enum_type := p.table.find_type(name)
if enum_type.cat != .enum_ {
p.error('`$name` is not an enum')
@ -367,7 +366,7 @@ fn (p mut Parser) name_expr() string {
if !enum_type.has_enum_val(val) {
p.error('enum `$enum_type.name` does not have value `$val`')
}
if p.expected_type == enum_type.name && !is_arr_start {
if p.expected_type == enum_type.name {
// `if color == .red` is enough
// no need in `if color == Color.red`
p.warn('`${enum_type.name}.$val` is unnecessary, use `.$val`')