29 lines · 316 B · Text
RawDownload
// class with function taking class as argument class Other{     10 => int x;    int y;} class X{     int x;    int y;     public void set( Other a )    {         a.x => x;        a.y => y;    }}  // instantiateOther a;X x; // call the functionx.set(a); // testif( a.x == 10 ) <<<"success">>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t