HCR: properly handling complex const objects in the codegen - fixes #13915 (#14115)

This commit is contained in:
Viktor Kirilov 2020-04-25 21:17:33 +03:00 • committed by GitHub
commit 018e297d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 6 deletions

View file

@ -7,6 +7,8 @@ type
let g_2* = @[Type2(data: 2), Type2(data: 3)][1..^1] # should have a length of 1
const c_2* = [1, 2, 3] # testing that a complext const object is properly exported
var a: tuple[str: string, i: int]
a.str = " 2: random string"
echo a.str