Simplify templates

This commit is contained in:
2026-07-29 23:11:48 +02:00
parent 4f6ad45b0e
commit a06c41f2c7
4 changed files with 21 additions and 42 deletions
-8
View File
@@ -106,14 +106,6 @@ void ErrorTest() {
"struct-typed fields");
TestError(
"struct X (native_type_template: \"Foo\") { Y:int; } "
"table T { y:X (native_type_template_arg:\"int\"); }",
"does not reference");
TestError(
"struct X (native_type_template: \"Foo<{{T0}}, {{T1}}>\") { Y:int; } "
"table T { y:X (native_type_template_arg:\"int\"); }",
"beyond the");
TestError(
"struct X (native_type_template: \"Foo<{{T}}>\") { Y:int; } "
"table T { y:X (native_type_template_arg:\"\"); }",
"empty template argument");
TestError("{}", "no root");