File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -169,26 +169,6 @@ fn (mut g Gen) comptime_call(mut node ast.ComptimeCall) {
169
169
// do not generate anything if the argument lengths don't match
170
170
g.writeln ('/* skipping ${sym.name} .${m.name} due to mismatched arguments list: node.args=${node.args.len} m.params=${m.params.len} */' )
171
171
// Adding a println(_SLIT(...)) like this breaks options
172
- /*
173
- g.writeln(
174
- 'println(_SLIT("comptime: ${sym.name}.${m.name} has a mismatched arguments list.' +
175
- ' The method has ${m.params.len - 1} parameters, but ${node.args.len} arguments were ' +
176
- 'provided. \\nargs: ${node.args}\\n${g.file.path}:${node.pos.line_nr}"));')
177
- */
178
- /*
179
- if true {
180
- println(node.args)
181
- verror('comptime: ${sym.name}.${m.name} has a mismatched arguments list.' +
182
- ' The method has ${m.params.len - 1} parameters, but ${node.args.len} arguments were ' +
183
- 'provided. ${g.file.path}:${node.pos.line_nr}\n')
184
- }
185
- if true {
186
- eprintln(
187
- 'comptime: skipping ${sym.name}.${m.name} due to mismatched arguments list\n' +
188
- 'method.params: ${m.params}, args: ${node.args}\n\n')
189
- // verror('expected ${m.params.len - 1} arguments to method ${node.sym.name}.${m.name}, but got ${node.args.len}')
190
- }
191
- */
192
172
return
193
173
}
194
174
}
You can’t perform that action at this time.
0 commit comments