Skip to content

Commit 36a705a

Browse files
committed
sema: fix some comptime methods returns typed constant expression instead of untyped
1 parent da86016 commit 36a705a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

std/jule/sema/comptime.jule

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ impl comptimeTypeInfo {
616616
}
617617
mut constant := constant::Const.NewStr(self.base.Str())
618618
ret &Value{
619+
untyped: true,
619620
Type: primStr,
620621
Constant: constant,
621622
Model: constant,
@@ -1473,6 +1474,7 @@ impl comptimeFile {
14731474
}
14741475
mut constant := constant::Const.NewStr(self.file.File.Path)
14751476
ret &Value{
1477+
untyped: true,
14761478
Type: primStr,
14771479
Constant: constant,
14781480
Model: constant,
@@ -1486,6 +1488,7 @@ impl comptimeFile {
14861488
}
14871489
mut constant := constant::Const.NewStr(self.file.File.Name())
14881490
ret &Value{
1491+
untyped: true,
14891492
Type: primStr,
14901493
Constant: constant,
14911494
Model: constant,
@@ -1499,6 +1502,7 @@ impl comptimeFile {
14991502
}
15001503
mut constant := constant::Const.NewStr(self.file.File.Dir())
15011504
ret &Value{
1505+
untyped: true,
15021506
Type: primStr,
15031507
Constant: constant,
15041508
Model: constant,
@@ -1676,6 +1680,7 @@ impl comptimeDecl {
16761680
}
16771681
mut constant := constant::Const.NewStr(name)
16781682
ret &Value{
1683+
untyped: true,
16791684
Type: primStr,
16801685
Constant: constant,
16811686
Model: constant,

0 commit comments

Comments
 (0)