record result II



record_result II
Smart pascal source code
type Tmt = record c1: String; c2: string; end; function titi: Tmt; begin result.c1 := 'aaa'; result.c2 := 'bbb'; end; procedure toto(a: Tmt); begin WriteLn(a.c1 + #13#10 + a.c2); end; toto(titi); // marche pas var x := titi; // marche toto(x); {<<< RESULT - CONSOLE LOG >>> ----------------------------- Errors >>>> Hint: "result" does not match case of declaration ("Result") [line: 10, column: 4] Hint: "result" does not match case of declaration ("Result") [line: 11, column: 4] Result >>>> aaa bbb aaa bbb ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}