cgen: fix const_embed_test.v error

pull/4451/head
yuyi 2020-04-17 01:43:39 +08:00 committed by GitHub
parent 4c8510dfaf
commit dee64347e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,6 @@ const (
'vlib/net/http/http_httpbin_test.v', 'vlib/net/http/http_httpbin_test.v',
'vlib/net/http/http_test.v', 'vlib/net/http/http_test.v',
'vlib/regex/regex_test.v', 'vlib/regex/regex_test.v',
'vlib/v/tests/const_embed_test.v',
'vlib/v/tests/enum_bitfield_test.v', 'vlib/v/tests/enum_bitfield_test.v',
'vlib/v/tests/fixed_array_test.v', 'vlib/v/tests/fixed_array_test.v',
'vlib/v/tests/fn_test.v', 'vlib/v/tests/fn_test.v',

View File

@ -1853,6 +1853,9 @@ fn (var g Gen) const_decl(node ast.ConstDecl) {
ast.CharLiteral { ast.CharLiteral {
g.const_decl_simple_define(name, val) g.const_decl_simple_define(name, val)
} }
ast.FloatLiteral {
g.const_decl_simple_define(name, val)
}
ast.IntegerLiteral { ast.IntegerLiteral {
g.const_decl_simple_define(name, val) g.const_decl_simple_define(name, val)
} }