mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
11 lines
275 B
Plaintext
11 lines
275 B
Plaintext
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?
|
|
}
|