Skip to content

Commit 8fe7283

Browse files
committed
Fix bug in the example
1 parent 6cb666a commit 8fe7283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repl/test.mtc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void Print(auto Value, const char* name, uint32_t indent)
88

99
@run {
1010
type valueType = .Compiler->GetType(.Compiler, Value);
11-
switch(.Compiler.GetTypeKind(valueType))
11+
switch(.Compiler->GetTypeKind(.Compiler, valueType))
1212
{
1313
case metac_type_kind_struct:
1414
{
@@ -20,7 +20,7 @@ void Print(auto Value, const char* name, uint32_t indent)
2020
for(uint32_t i = 0; i < memberCount; i++)
2121
{
2222
metac_aggregate_member_t member = members->Members[i];
23-
eject Print(Value.$(member.name), #$(member.name), $(indent + 1));
23+
eject Print(Value.$(member.name), #$(member.name), indent + 1);
2424
}
2525
} break;
2626
default:

0 commit comments

Comments
 (0)