Changeset 55ba7339 for src/Tests/Context.c
- Timestamp:
- Jun 14, 2016, 12:33:57 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:
- e04ef3a
- Parents:
- 4c82a3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/Context.c
r4c82a3c r55ba7339 1 context has_q( type T ) {1 context has_q( otype T ) { 2 2 T q( T ); 3 3 }; 4 4 5 forall( type z | has_q( z ) ) void f() {6 context has_r( type T,type U ) {5 forall( otype z | has_q( z ) ) void f() { 6 context has_r( otype T, otype U ) { 7 7 T r( T, T (T,U) ); 8 8 }; 9 9 10 extern type x, y | has_r( x, y );10 extern otype x, y | has_r( x, y ); 11 11 } 12 12
Note: See TracChangeset
for help on using the changeset viewer.