Error message for missing arg incorrect for methods with zero args #2296.

This commit is contained in:
Christoffer Lerno
2025-07-14 23:21:15 +02:00
parent efaac43248
commit 1a351bdb6d
3 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
module test;
import std;
fn void String.hello(self, int a, int b) {}
fn void main()
{
String s = "foek";
s.hello(); // #error: 'hello' expects 2 parameter(s), but none was provided
s.hello(1); // #error: 1 more argument was expected after this one, did you forget it?
}