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

cgen: fix const_embed_test.v error

This commit is contained in:
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_test.v',
'vlib/regex/regex_test.v',
'vlib/v/tests/const_embed_test.v',
'vlib/v/tests/enum_bitfield_test.v',
'vlib/v/tests/fixed_array_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 {
g.const_decl_simple_define(name, val)
}
ast.FloatLiteral {
g.const_decl_simple_define(name, val)
}
ast.IntegerLiteral {
g.const_decl_simple_define(name, val)
}