Return type inference bugs with macros #1757

This commit is contained in:
Christoffer Lerno
2025-01-02 17:34:37 +01:00
parent 37c62bf9b7
commit 14d8e93004
5 changed files with 106 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ fn void! CsvReader.skip_row(self) @maydiscard
};
}
macro CsvReader.@each_row(self, int rows = int.max; @body(String[] row))
macro void! CsvReader.@each_row(self, int rows = int.max; @body(String[] row)) @maydiscard
{
InStream stream = self.stream;
String sep = self.separator;