Capitalized type names

This commit is contained in:
2026-04-24 12:46:27 +10:00
parent 4aec343b6c
commit 21819b2d62
10 changed files with 71 additions and 40 deletions
+2 -2
View File
@@ -1252,7 +1252,7 @@ int test_compiler_keywords(Toy_Bucket** bucketHandle) {
//var declare (with type)
{
//setup
const char* source = "var foobar: int = 42;";
const char* source = "var foobar: Int = 42;";
Toy_Lexer lexer;
Toy_Parser parser;
@@ -1363,7 +1363,7 @@ int test_compiler_string_reuse(Toy_Bucket** bucketHandle) {
//test string literals
{
//setup
const char* source = "var first: string = \"Hello world\"; var second: string = \"Hello world\";";
const char* source = "var first: String = \"Hello world\"; var second: String = \"Hello world\";";
Toy_Lexer lexer;
Toy_Parser parser;