[Issue 12436] Opaque struct parameter type should not be allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 21 15:38:17 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12436



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-21 15:38:16 PDT ---
There are various other cases not caught yet, even for return types which are
partially checked now. Examples:

-----
struct S;

S ret_f1();     // ok: fails
S[] ret_f2();   // should fail
S[1] ret_f4();  // should fail
S[]* ret_f3();  // should fail

void call_f1(S);     // should fail
void call_f1(S[]);   // should fail
void call_f1(S[1]);  // should fail
void call_f1(S[]*);  // should fail

void main() { }
-----

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list