Changeset a0dcd2e for src/tests/Context.c
- Timestamp:
- Jun 20, 2016, 3:03:18 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 21eb693
- Parents:
- 9724df0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Context.c
r9724df0 ra0dcd2e 1 // cforall context declaration2 context has_q( otype T ) {1 // trait declaration 2 trait has_q( otype T ) { 3 3 T q( T ); 4 4 }; 5 5 6 6 forall( otype z | has_q( z ) ) void f() { 7 context has_r( otype T, otype U ) {7 trait has_r( otype T, otype U ) { 8 8 T r( T, T (T,U) ); 9 9 };
Note: See TracChangeset
for help on using the changeset viewer.