source: to-imperative/trunk/samples/Syntax/trap2.rf @ 4085

Last change on this file since 4085 was 4026, checked in by orlov, 12 years ago
  • Tests for $trap...$with construction.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 177 bytes
Line 
1$use StdIO;
2
3$func F = ;
4
5F = A : B;
6
7$func Main = e;
8Main =
9  $trap <F> $with {
10    F "Unexpected fail" = <WriteLn Catched F "Unexpected fail">;
11    err = <WriteLn err>;
12  };
13
Note: See TracBrowser for help on using the repository browser.