mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update tests to (Foo) { ... } syntax.
This commit is contained in:
@@ -68,13 +68,13 @@ fn void! TextTemplate.init(&self, String template, String tag_start = "{{", Stri
|
||||
{
|
||||
$switch ($m.typeid)
|
||||
$case String.typeid:
|
||||
return TextTag{
|
||||
return (TextTag){
|
||||
.kind = STRING,
|
||||
.data = (String*)(data + $m.offsetof),
|
||||
};
|
||||
$default:
|
||||
$if $defined($m.get(self.data).as_stream):
|
||||
return TextTag{
|
||||
return (TextTag){
|
||||
.kind = TEMPLATE,
|
||||
.template = self.data.$eval($m.nameof).as_stream(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user