mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed comptime with local mixin with composite param access
This commit is contained in:
parent
4575c64133
commit
dd3485af0c
2 changed files with 14 additions and 1 deletions
|
@ -135,6 +135,16 @@ namespace Tests
|
|||
public const let cVal1 = StrToValue("1.23");
|
||||
}
|
||||
|
||||
[Comptime]
|
||||
static int StrLenMixin(StringView str)
|
||||
{
|
||||
mixin test()
|
||||
{
|
||||
str.Length
|
||||
}
|
||||
return test!();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public static void TestBasics()
|
||||
{
|
||||
|
@ -172,6 +182,7 @@ namespace Tests
|
|||
Test.Assert([ConstEval]MethodB() == 1);
|
||||
|
||||
Test.Assert(MethodC() == 1753);
|
||||
Test.Assert(StrLenMixin("ABCD") == 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue